DWITE

October 2012

Problem 1

Candy Piles

After collecting a lot of candy this Halloween, the most obvious next step is to organize it into piles and draw graphs of the loot. Of course.

The input file **DATA1.txt** will contain 5 lines, each being a single positive integer describing the height of the candy pile.

The output file **OUT1.txt** will contain an ASCII drawing of the piles of candy. A triangle of asterisks will approximate such piles. Refer to the sample below.

Sample Input (first 3 shown):

2 1 3

Sample Output (first 3 shown):

* ** * * * ** *** ** *