public static void main(String[] args)
{
int i=1;
int j=1;
while(i<=9){
j = 1;
while(j<=i){
int answer;
answer = i*j;
System.out.print(j+"*"+i+"="+answer+" ");
j++;
}
System.out.println();
i++;
}
}
使用JAVA while循环编写九九乘法表
最新推荐文章于 2024-07-03 22:20:08 发布