九九乘法表
程序员文章站
2024-03-23 18:24:22
...
package test1;
public class Nine_nine {
public static void main(String[] args) {
multiplication();
}
public static void multiplication(){
for (int i = 0; i <= 9; i++){
for(int j = 1; j <= i; j++){
System.out.print(i + "*" + j + "=" + i*j + " ");
}
System.out.println();
}
}
}