Question: 1. Write and explain (through comment or description after the program) a complete C program to perform the following activities: a. Take Student ID

1. Write and explain (through comment or description after the program) a complete C program to perform the following activities: a. Take Student ID as user input from keyboard (2) b. Determine the units digit of your student ID. (e.g. '5' if your student ID is '19121045') (6) c. Determine the factorial of the units digit. That is, if the units digit is 5, the output should be 5*4*3*2*1=120. If the units digit is 3, the output should be 3*2*1=6. Use loop control statement (while/ do while/for loop) to solve this problem. The code must be general, that is, the code must work irrespective of the units digit. TEST INPUT: 19121045 TEST OUTPUT: The units digit is 5. The factorial of the units digit is 120. (12) Activate Windo Go to Settings to ac
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
