Question: Exercise 1 Write a C program that asks the student to enter their AUM student ID (vou must provide your own, real AUM ID). Then,

 Exercise 1 Write a C program that asks the student to

Exercise 1 Write a C program that asks the student to enter their AUM student ID (vou must provide your own, real AUM ID). Then, the program should add the digits of the ID and do integer division by 2. After that, calculate and print the factorial of the above produced number a) using recursion [12points] b) using iteration (Spoints). What are the pros and cons of using recursion against iteration?[5 points) Sample output: Enter your personal AUM ID: 12345 The new number is: 7 The factorial of 7 = 5040 Process returned (@xo) execution time : 2.196 s Press any key to continue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!