Question: Task 1: Factorial Write a C program that calculates the factorial of a given integer using a for loop. Your program should prompt the user
Task 1: Factorial Write a C program that calculates the factorial of a given integer using a for loop. Your program should prompt the user to enter an integer, and then output the factorial of that integer.
Task 2: Calculator Write a C program that takes two integer values as input and performs the following operations on them: Addition Subtraction Multiplication Division Modulus Your program should output the result of each operation. Example: Enter expression: 10+5 Result: 15 Enter expression: 10-5 Result: 5 Enter expression: 10*5 Result: 50 Enter expression: 10/5 Result: 2 Enter expression: 10%5 Result: 0
Please help me
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
