public class lianxi2 { public static void main(String[] args) { // TODO 自动生成的方法存根 for (int a = 1;a<=9;a++) { for(int b=1;b<=a;b++){ System.out.print(a+"*"+b+"="+a*b+" "); } System.out.println(); } } }
public class lianxi2 { public static void main(String[] args) { // TODO 自动生成的方法存根 for (int a = 1;a<=9;a++) { for(int b=1;b<=a;b++){ System.out.print(a+"*"+b+"="+a*b+" "); } System.out.println(); } } }