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+"\t"); } System.out.println(); } } }
标签:blog div span nbsp string 乘法表 log class system
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+"\t"); } System.out.println(); } } }
标签:blog div span nbsp string 乘法表 log class system
原文地址:http://www.cnblogs.com/zjk1/p/8052453.html