Home Factorial Factorial Author - Suman Barik September 24, 2022 0 #include <iostream>using namespace std;int func(int n) { if(n <= 1) { return 1; } else{ return n * func(n - 1); } }int main( ) { cout << func(5); return 0; } Facebook Twitter Whatsapp Newer Older