import java.util.Scanner;
public class FactorialTest {
public static void main(String args[]){
int n;
Scanner y=new Scanner(System.in);
n=y.nextInt( );
int num=1;
int i=1;
do
{
num*=i;
i++;
}while(i<=n);
System.out.print(num);
}
}
第7周作业1-循环大战
最新推荐文章于 2023-01-08 02:34:37 发布