Question: Write it in C programming Write a program that reads two integers from the user and computes their addition, subtraction, multiplication, division and modulo result.
Write a program that reads two integers from the user and computes their addition, subtraction, multiplication, division and modulo result. Your program should produce the exact output shown below It's good practice to think of the special cases our program may encounter. For this program, if the second integer is zero, the program should not attempt dividing or doing the modulo operation because this will crash the program. See the second output below and produce such an output in this case. Here are two sample outputs. Enter integer a: 7 Enter integer b: 3 atb 7+310 a-b = 7-3 = 4 a*b = 7*3 21 Enter integer a: 6 Enter integer b: 0 a-b 6-06 a/b Cannot divide by zero atb Cannot divide by zero
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
