#include<iostream>
using namespace std;
int factorial (int a){
if(a > 1){
return a * factorial(a-1);
}
else
return 1;
}
int main(){
int n;
cin>>n;
cout<<"The factorial of "<<n<<" is "<<factorial(n);
}
GTA 6 Release Date, Pricing, and Everything You Need to Know Before November 2026 The gaming world is buzzing with anticipation for Grand ...
No comments:
Post a Comment