#include <iostream>
#include <cstdio>
using namespace std;
int fac(int n){
if(n==0||n==1) return 1;
return n*fac(n-1);
}
int main()
{
int n;
while(scanf("%d",&n)==1){
printf("%d\n",fac(n));
}
return 0;
}
Subscribe to:
Post Comments (Atom)
All rights reserved||Using Deluxe Template By Klodian
No comments:
Post a Comment