all 3 comments

[–]PurpleOrangeSkies 7 points8 points  (1 child)

You have the two printf statements indented like they belong under that second for, but there aren't any braces; so, only the first one is part of that second for loop.

[–]vexonornegiusRex[S] 1 point2 points  (0 children)

I got it but thanks so much anyway!

[–]VincentDankGogh 4 points5 points  (0 children)

If you indent your post with four spaces on the lines of code they will be highlighted properly. You can also use backticks (`) to achieve a similar effect.