public class ForDemo04 {
public static void main(String[] args) {
int ride ;
for (int i = 1; i <= 9; i++) {
for (int m = 1; m <= i; m++) { //m<=i 是用来去掉重复项的
ride = i * m;
System.out.print(i+"x"+m+"="+ride+"\t"); //print 输出不会换行
}
System.out.println(); //println 输出会换行
}
}
}