#include
#include
intmain()
{
inti=1;
intn;
ints=1;
scanf("%d",&n);
while(i<=n)
{
s=s*i;
i++;
}
printf("s=%d\n",s);
}
2
#include
#include
intmain()
{
inti=1;
intn;
ints=1;
scanf("%d",&n);
for(i=1;i<=n;i++)
s=s*i;
printf("%d!=%d\n",n,s);
}
3.
#include
intjiecheng(intn)
{
if(n==1||n==0)
return1;
else
returnn*jiecheng(n-1);
}
intmain()
{
inti=1;
intn;
ints=1;
scanf("%d",&n);
printf("%d!=%d\n",n,jiecheng(n));
}