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]

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!