why
why
已解决
评论 (3)
- 受欢迎
- 新
- 旧
你必须先登录才能发表评论
steven
10 十一月 2021, 06:52
int i = 1 ;
int y = 1 ;
while(i<=10){
while(y<=10){
System.out.print(y*i+" ");
y++;
}
i++;
y=1;
System.out.println();
}
0
Leo
7 四月 2021, 05:24解决方法
public class Solution {
public static void main(String[] args) throws Exception {
//在此编写你的代码
int i=0;
while(i<10){
i++;
int b=0;
while(b<10){
b++;
System.out.print(i*b+" ");
}
System.out.println();
}
}
}
+2
Jack
8 六月 2021, 10:35
应该是i<11,b<11。注意看题,你这个运行起来只有1到9的乘法表,题目是1 -10
0