May 03

I was studying for an exam coming up on 13 May. My lecture always emphasis write a program to produce the output as below. He mentioned we are guarantee to pass the exam.

I remeber clearly what he said “If anyone who can failed the exam after writing the program for this, I will sponsor him 1 year of chicken pie for free.”

Well, it’s definately not the exam qn, but I believe that he says this for a reason. I did go ahead and try writing the program. Anyone dare to take up the challenge?

[source=’java’]
*
**
***
****
*****
[/source]

[source=’java’]
*****
****
***
**
*
[/source]

[source=’java’]
*****
****
***
**
*
[/source]

[source=’java’]
*
**
***
****
*****
[/source]

[source=’java’]
*
***
*****
*******
*********
[/source]

[source=’java’]
*********
*******
*****
***
*
[/source]

written by coppermine