Posted: Wed May 07, 2008 6:35 pm Post subject: Help Starss
HEY GUYs i need to make a program exactly like this can you help me out
i need to use nested loops to do this
thanks in advance
[/img]
Sponsor Sponsor
SNIPERDUDE
Posted: Thu May 08, 2008 1:13 pm Post subject: RE:Help Starss
We are not going to tell yo uthe coding;
bu tI may be able to help with the logistics:
try breaking it up into two halves
or sections: one being spaces (0 in this
example) and the other *s. As the number of
*s increase by 2, the spaces (or 0s) decrease
by 1.
0000*
000***
00*****
0*******
*********
Hope that helps!
salah_1192
Posted: Thu May 08, 2008 6:39 pm Post subject: Re: RE:Help Starss
SNIPERDUDE @ Thu May 08, 2008 2:13 pm wrote:
We are not going to tell yo uthe coding;
bu tI may be able to help with the logistics:
try breaking it up into two halves
or sections: one being spaces (0 in this
example) and the other *s. As the number of
*s increase by 2, the spaces (or 0s) decrease
by 1.
0000*
000***
00*****
0*******
*********
Hope that helps!
yes i understand however i have to use a nested loop
SNIPERDUDE
Posted: Mon May 12, 2008 1:20 pm Post subject: RE:Help Starss
Have the outside loop counting down,
and the inside loop counting up.
...provided you use nested for (While) loops
If you're not allowed to use those just use
variables to count.
salah_1192
Posted: Mon May 12, 2008 8:13 pm Post subject: Re: Help Starss
Quote:
Have the outside loop counting down,
and the inside loop counting up.
...provided you use nested for (While) loops
If you're not allowed to use those just use
variables to count.
_________________
You're only sick as your secrets, but the truth will set you free...
Yes i know what a nested loop is however i dont know how to do it so that the shape is such
can you be more ellaborative
i really appreciate the help
syntax_error
Posted: Mon May 12, 2008 10:57 pm Post subject: RE:Help Starss
trace through the shape to see how you would draw it line by line and see a pattern then recreate it in the for loop like structure , with this kind of program giving more then guild lines sorta gives the answer away.