int num=1;
for(int i=1;i<=10;i++){
num*=i;
}
System.out.println(num);
无相孤君
第 4 级
[答案]10 个数字的乘积
正在讨论
评论 (3)
- 受欢迎
- 新
- 旧
你必须先登录才能发表评论
Bob
25 九月 2020, 08:57
public class Solution {
public static void main(String[] args) {
//在此编写你的代码
int i,j= 1;
for(i=1;i <= 10;i++){
j=j * i;
}
System.out.println(j);
}
}
0
cooler-tlt
6 七月 2020, 14:19
Less than three million
0
Guadalupe Gagnon
23 十二月 2019, 19:11
cant help you if you do not share the solution
0