#include<stdio.h>
int main ()
{
int i =0;
int n = 0;
int a = 1;
scanf("%d",&n);
for(i = 1;i<=n;i++)
{
a = a*i;
}
printf("%d\n",a);
return 0;
}
标签:return,int,scanf,includeint,计算,printf,阶乘 From: https://blog.51cto.com/u_15841203/5798392
#include<stdio.h>
int main ()
{
int i =0;
int n = 0;
int a = 1;
scanf("%d",&n);
for(i = 1;i<=n;i++)
{
a = a*i;
}
printf("%d\n",a);
return 0;
}
标签:return,int,scanf,includeint,计算,printf,阶乘 From: https://blog.51cto.com/u_15841203/5798392