Question: csties. [3 Marks] Anelude int factorial ...................... //function declaration int main(vold) ( return 0 ; ) // function cal1 void compute_factorial (vold) i int num,
csties. [3 Marks] Anelude int factorial ...................... //function declaration int main(vold) ( return 0 ; ) // function cal1 void compute_factorial (vold) i int num, fact; printe ("Enter a positive integer >" ) : scanf ("fd", snum) : fact = factorial (num) : printf ("The factorial of sd is tod ", num, fact) : ) int factorial (int n) ( if (n=0) return 1; / Base case else //recursive case
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
