Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- long long int f(int N){
- if(N==0)return 1;
- return N*f(N-1);
- }
- long long int factorial(int N){
- //code here
- long long int ans = f(N);
- return ans;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement