单循环实现JAVA输出99乘法表 package L4Loop;/* * 输出9*9乘法表 * author jerrychen51@163.com * 2017.11.28 * */public class MultiplicationTable {public static void main(String[] args) {int i = 1;int j = 1;while (j 10) {System.out
package L4Loop; /* * 输出9*9乘法表 * author jerrychen51@163.com * 2017.11.28 * */ public class MultiplicationTable { public static void main(String[] args) { int i = 1; int j = 1; while (j < 10) { System.out.print(i + "*" + j + "=" + i*j+" "); //i++; //if((i-1)==j){ if((i++)==j){ System.out.println(); i=1; j++; } } } }