It's there, because the first thing you do in your outer loop is printing a new line. I bet when you used the pencil, the first thing was drawing a *, not moving to a new line :D
Type: Posts; User: PhHein
It's there, because the first thing you do in your outer loop is printing a new line. I bet when you used the pencil, the first thing was drawing a *, not moving to a new line :D
From my earlier reply
As I cannot see your inner loop, it's hard to tell. Please always post your complete code, so that members see your actual version.
Then your pencil is broken! Your outer loop only runs four times. I will not provide any code, that's your task. I'll only give, in your perception, unhelpful advice.
You have to seperate the line breaks from the output of the *.
The two nested loops are a good start. Do it again with paper and pencil and find out how often each loop should run.