pinacle
02-03-02, 12:27 PM
Hi,
I am a student and I have to write a program to have a diamond come out on the output screen. It has to look like this........................*
...........................***
.........................*****
...........................***
.............................*
-Disregard all the periods before each line of the stars, I just had to put them there to get the diamond centered.
But I have to try and see how big it can be on the output screen. I know I have to use while loops and odd numbers for the amount of stars on a line. I dont know where to start and I know that it is probably simple and one of you out there can do it in like 5 minutes. Please Help!!!
I am a student and I have to write a program to have a diamond come out on the output screen. It has to look like this........................*
...........................***
.........................*****
...........................***
.............................*
-Disregard all the periods before each line of the stars, I just had to put them there to get the diamond centered.
But I have to try and see how big it can be on the output screen. I know I have to use while loops and odd numbers for the amount of stars on a line. I dont know where to start and I know that it is probably simple and one of you out there can do it in like 5 minutes. Please Help!!!