public class Ex01{ public static void main(String[] args){ /* 打印99乘法表 1*1=1 2*1=2 2*2=4 3*1=3 3*2=6 3*3=9 ... */ for(int i=1;i<=9;i++){ for(int j=1;j<=i;j++){ System.out.print(i+"*"+j+"="+(i*j)+"\t"); } System.out.println(); } } }
public class Ex01{ public static void main(String[] args){ /* 打印99乘法表 1*1=1 2*1=2 2*2=4 3*1=3 3*2=6 3*3=9 ... */ for(int i=1;i<=9;i++){ for(int j=1;j<=i;j++){ System.out.print(i+"*"+j+"="+(i*j)+"\t"); } System.out.println(); } } }
转载于:https://www.cnblogs.com/lth0095/p/6925580.html