Page 1 of 1

#include Next int main() { int n = 5; int i; printf("Factorial of %d: %d\n", n factorial(n)); return 0; } Mesources int

Posted: Mon Jun 06, 2022 1:51 pm
by answerhappygod
Include Next Int Main Int N 5 Int I Printf Factorial Of D D N N Factorial N Return 0 Mesources Int 1
Include Next Int Main Int N 5 Int I Printf Factorial Of D D N N Factorial N Return 0 Mesources Int 1 (28.91 KiB) Viewed 24 times
#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