Java经典习题16

/*
题目:输出9*9口诀。
*/
public class Class16 {

public static void main(String[] args) {
System.out.println("9*9乘法表如下:");
int t;
for(int i = 1; i <= 9; i++){
for(int j = 1; j <= 9; j++){
t = i*j;
if(j != 9){
System.out.print(i + "*" + j + "=" + t + " ");
}else if(j == 9){
System.out.println(i + "*" + j + "=" + t);
}

}
}

}

}

原文地址:https://www.cnblogs.com/zhuozige/p/12358576.html