1 2 3 4 5 6 7 8 9 10
class Test{ public static void main(String[] args){ for(int i=1;i<=20;i++){ for(int d=1;d<=10;d++){ System.out.print(i*d + " "); } System.out.println(); } } }
You can clone a snippet to your computer for local editing. Learn more.