You need an other variable to keep the number of stars, initialize it with one and increment it by two each iteration
Add the spaces before the stars
So the problem was not in the spaces but in the counter witch counts the stars.
Weird :(]
Well, thanks bazzy, you helped me once again lol :D
EDIT: what does += does?
Last edited on
x += y
is the same as x = x + y
now it get it, ty
OFFTOPIC: what is the function to generate a random number or a random letter?
something like:
int a = random(100);
so it would generate a random number between 0 and 100
Last edited on