- #1
bsheltonihs
- 3
- 0
I am trying to write a nested For loop to display multiplication table from 1*1 to 10*10 but I need to output a new line after 10 items. I have this written so far and was wondering if my "new line" statement was correct.
Declare nb1, nb2 As Int
For (nb1 = 1; nb1 < 11; nb1++)
For (nb2 =1; nb2 < 11; nb2++)
Write nb1 * nb2 + " "
End For
Write newline( )
End For
Thanks for your help!
Brad
Declare nb1, nb2 As Int
For (nb1 = 1; nb1 < 11; nb1++)
For (nb2 =1; nb2 < 11; nb2++)
Write nb1 * nb2 + " "
End For
Write newline( )
End For
Thanks for your help!
Brad