Question: Description For the lab assignment, write a C program that prints a prompt requesting an integer. Read this integer into a variable. Prompt the user
Description
For the lab assignment, write a C program that prints a prompt requesting an integer. Read this integer
into a variable. Prompt the user to enter a second integer. Read this integer into another variable.
Print the values of both variables that were entered by the user.
Print the value of the first variable times the second variable.
Print the value of the second variable divided by the first variable.
Print the value of the first variable plus quantity times the second variable eg: Imagine you
named the first variable X and the second variable Y If X is and Y is then X plus quantity
times Y is because X plus is and times is
Print the values of both original variables again to show that they did not change.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
