#include<stdio.h> int N(int x)//递归 { if(x==1) return x; else return x*N(x-1); } int main() { int x,n; printf("please input x:\n"); scanf("%d",&x); n=N(x); printf("x!=%d",n); return 0; }