Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started