Yes but his code wasn't correct to begin with, from what the output proves that code is fine. Until the output is set to something else then that code is wrong. You're assuming that he wants it to...
Type: Posts; User: uEih
Yes but his code wasn't correct to begin with, from what the output proves that code is fine. Until the output is set to something else then that code is wrong. You're assuming that he wants it to...
Not at all, because the input was 4 and there's 5 A's. No where did it specify that you need the amount of A's from the input. The number input was simply for the amount of spaces and lines of A's, 4...
May I ask why? It's probably not the best way to do it but it works.
That code does apply the number of spaces on every other line. so it should work out to be the same. The code prints out the first set of lines while going to a new line. Then the spaces are added in...
Read the announcement to format correctly, but what you're doing wrong is printing the A's one by one, it seems the A's aren't affected by the input so you can print a whole line by itself. Here's...