+ 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 Respuesta
+ 1
You could have something like this:
If (i%5==0){System.out.println("");}
in your for loop (where I is counter).