Compile Error
/in/foo.c: In function 'main': /in/foo.c:12:1: error: 'retrn' undeclared (first use in this function) retrn 0; ^~~~~ /in/foo.c:12:1: note: each undeclared identifier is reported only once for each function it appears in /in/foo.c:12:7: error: expected ';' before numeric constant retrn 0; ^
代码
#include<stdio.h>
int main ()
{
int i,n;
double productor;
printf("Enter n:");
scanf("%d",&n);
productor=1;
for(i=1;i<=n;i++)
productor=productor*i;
printf("%d!=%0f\n",n,productor);
retrn 0;
}