New to Java and I need to write a program that prints out the numbers from one to 100 in 10 rows and columns, incrementing first down the column using nested loops. Any help would be greatly appreciated.
This is what I have tried, but it's not printing the right numbers.
for ( int i = 1 ; i <= 10; i++ ) {
for ( int j = 1 ; j <= 10; j++ ) {
System.out.printf("%4d", i*j );
}
System.out.println();
}