package util; public class Demo{ public static void main(String[] args) { int x,y; for(x = 0;x <= 9; x++){//外循环控制行 for(y = 1;y <= x; y++){//内循环控制列 System.out.print(y+"*"+x+"="+x*y+" "); } System.out.println(); } } }