rascal22
11-24-2003, 10:12 PM
How would I write a program outputs the following using a for loop:
________x
_______x
______x
_____x
____x
___x
__x
_x
x
I can't figure out how I'd use the loop to create the number of spaces. Spaces are a char and the number of them an int. I know it involves a --, and a 9 and a 0, but I'm not sure where to go from there...can anyone please help? It's probably something really simple that I'm just not thinking of (lol). Thanks ;)
________x
_______x
______x
_____x
____x
___x
__x
_x
x
I can't figure out how I'd use the loop to create the number of spaces. Spaces are a char and the number of them an int. I know it involves a --, and a 9 and a 0, but I'm not sure where to go from there...can anyone please help? It's probably something really simple that I'm just not thinking of (lol). Thanks ;)