Question: Write a program that first prompts the user to enter two whole numbers, stores the numbers entered in variables defined to be distype int. and
Write a program that first prompts the user to enter two whole numbers, stores the numbers entered in variables defined to be distype int. and then calculates and displays the product of the numbers entered. Each of the prompts must begin with the word "Enter" For example, it the user enters 5 and 3 in response to the prompts the output should be 5.3 - 15 Add additional code below the code from above, to 1. Print a blank line 2. Prompt the user for two more whole numbers and store the values entered in the same variables used for the previous values entered 3. Divide the first of the new numbers by the second and display the resulting value 4 Divide the second number by the first and display the resulting value on the line below the first quotient For example, if the second pair of numbers entered are 12 and 4, the output produced by this added segment should be 12 / 4 = 3 4 / 12 = 0 Additional Requirements To complete this assignment you are ONLY allowed to use what is discussed in Chapters 1 - 2 of the text and lectures. If you already know how to program, refrain from using more advanced constructs or library routines. The problem can and should be solved using only what wa hao amor The
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
