+1

Why output is 120

int factorial(int n) { if (n==1) { return 1; } else { return n * factorial(n-1); } } int main() { cout << factorial(5); } //Outputs 120

3/28/2019 2:36:57 PM

Mohit Ravindra Jadhav

2 Answers

New Answer

+1

Why output is 120🤔

+1

https://www.sololearn.com/learn/CPlusPlus/1641/?ref=app