九九乘法小练习
package Wu; public class wu { public static void main(String[] args) { int i=9,j = 9; for(i=1;i<=9;i++){ for(j=1;j<=i;j++){ System.out.print(j+"*"+i+"="+(i*j)+"\t"); } System.out.println(); } } }
package Wu; public class wu { public static void main(String[] args) { int i=9,j = 9; for(i=1;i<=9;i++){ for(j=1;j<=i;j++){ System.out.print(j+"*"+i+"="+(i*j)+" "); } System.out.println(); } } }