Hi ,
any one could help me on this ,i want it start from one until 30 thanks
the out come is as follow my question where is 6 ,10 ,Code:import java.util.Scanner; public class inte { public static void main(String[] args) { final int MAX_ROWW = 5; final int MAX_STARR = 20; int i,k; for(i=1; i <= 30 ;i++) { for(k=1; k <= MAX_ROWW; k++) { System.out.print(String.format ("%5d",i++)); } System.out.println(); } } }
why ?
any help please
1 2 3 4 5
7 8 9 10 11
13 14 15 16 17
19 20 21 22 23
25 26 27 28 29


Reply With Quote


Bookmarks