Question: 2. Write a C program that: [10 points total, 25 minutes] Takes two integer inputs from the keyboard and stores them in variables INPUT_A and
![2. Write a C program that: [10 points total, 25 minutes]](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f300b820e56_46366f300b7b0d87.jpg)
2. Write a C program that: [10 points total, 25 minutes] Takes two integer inputs from the keyboard and stores them in variables INPUT_A and INPUT_B, where valid inputs are integers ranging from decimal -128 to +127 - Computes and outputs the sum (OUTPUT_ADD), difference (OUTPUT_SUB) and product (OUTPUT_MULT) from the inputs. - Program repeats the above two steps as long as any input is not zero - If any input is out of valid range, the program will exit immediately - Make sure the program is fully commented. [11 points] Example output: A program that computes the sum, difference and product of two inputs (AB) Valid inputs can range from -129 to +127 Please input a number A: 3 Please input a number B: 2 Sum = 5, Difference = 1, Product = 6 Please input a number A: 5 Please input a number B: -7 Sum = -2, Difference = 12, Product = -35 Please input a number A: 0 Exiting Program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
