Wrong Answer
/in/foo.c: In function 'main': /in/foo.c:10:12: warning: too many arguments for format [-Wformat-extra-args] printf("%d\n", a, num); ^~~~~~
代码
#include <stdio.h>
int main()
{
int i,a,num=1;
scanf("%d", &a);
for(i=1; i<=a; i++)
{
num *= i;
}
printf("%d\n", a, num);
return 0;
}