You are viewing a single comment's thread. Return to all comments →
#include<iostream> int factorial(int n){ if(n==1){return n;} return factorial(n-1)*n; } int main(){ int n; std::cin>>n; std::cout<<factorial(n); return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
Security Encryption Scheme
You are viewing a single comment's thread. Return to all comments →