九九乘法表
package xiao;
public class jiujiucheng {
public static void main(String[] args) {
// TODO 自动生成的方法存根
int i,j;
for (i=1;i<=9;i++){
for(j=1;j<=i;j++){
System.out.print(j+"*"+i+"="+(i*j)+" ");
}
System.out.println();
}
}
}
- 运行结果如下: