#include Next int main() { int n = 5; int i; printf("Factorial of %d: %d\n", n factorial(n)); return 0; } Mesources int
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
#include Next int main() { int n = 5; int i; printf("Factorial of %d: %d\n", n factorial(n)); return 0; } Mesources int
#include Next int main() { int n = 5; int i; printf("Factorial of %d: %d\n", n factorial(n)); return 0; } Mesources int factorial(int n) { if(n== { return 1; } Follow-up and reports More else { return n* factorial(n-1); } } Pause tes
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!