+ 1
How to generate a line per 5 letters with for loop?
I use method System.out.print() to print alphabet in for loop. And I want to print multiple lines,5 letters within each line.
1 ответ
+ 1
You could have something like this:
If (i%5==0){System.out.println("");}
in your for loop (where I is counter).