用java实现九九乘法表的打印
代码如下:
// package hycode.basic;
public class MultiplicationTable {
public static void main(String[] args) {
for(int i=0;i<10;i++) {
for (int j = 1; j <= 9; j++) {
if(j<=i)
System.out.print(j + "*" + i + "=" + j * i+" ");
}
System.out.println();
}
}
}