> 其他 >
输入一个正整数,输出该数的阶乘.求整数n的阶乘公式为:=1*2*…*n.(n!表示n的阶乘)
人气:321 ℃ 时间:2019-11-01 08:44:11
解答
public class d {
public static void main(String[] args) {
int i = 1;
int s=1;
int n = Integer.parseInt(args[0]);
while (i
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版