I'm having a lot of trouble understanding an assignment we were given today. It has to be written using only loops. I'm finding it a little hard to comprehend right now, so just a bit of guidance on where to start would be great.
I understand that the program would start at the top left so, everything would rely on nested loops.
The user is asked to enter:
An X,Y coordinate for the upper vertex
And the length of the pyramid
I.e. If a user entered 15,15 and 9
The result:
20+
|
|
|
|
15 *
| ***
| *****
| *******
| *********
10 *******
| *****
| ***
| *
|
5
|
|
|
|
+----+----+----+----+----+----+----+---->
0
Thanks