int a=1, b=1; while(a<=10){ while(b<=10){ System.out.print(a*b+" "); b++; } a++; System.out.println(); } } } почему цикл с переменной а не работает?