package com.itheima.anli; public class Anli3 { public static void main(String[] args) { for (int i = 1; i <=9 ; i++) { for(int j=1;j<=i;j++){ int x=j*i; System.out.print(j+"x"+i+"="+x+" "); } System.out.println(); } } }
package com.itheima.anli; public class Anli4 { public static void main(String[] args) { for (int i = 1; i <=4 ; i++) { for (int j = 1; j <=4-i; j++) { System.out.print(" "); } for (int j = 1; j <=(2*i-1); j++) { System.out.print("*"); } System.out.println(); } } }
标签:JAVA,String,package,int,99,乘法表,public From: https://www.cnblogs.com/pengsuoqun123/p/18050693