#include<stdio.h>
int main()
{
int n,a,t;
scanf("%d",&n);
a=1;
t=1;
while(t<=n)
{
a=a*t;
t=t+1;
}
printf("最后的数为%d。/n",a);
return 0;
}
05-26
#include<stdio.h>
int main()
{
int n,a,t;
scanf("%d",&n);
a=1;
t=1;
while(t<=n)
{
a=a*t;
t=t+1;
}
printf("最后的数为%d。/n",a);
return 0;
}