Question: Using the statements you wrote in Exercise 3.5, write a complete app that calculates and displays the product of three integers. Data From Problem 3.5
Using the statements you wrote in Exercise 3.5, write a complete app that calculates and displays the product of three integers.
Data From Problem 3.5
Write declarations, statements or comments that accomplish each of the following tasks:
a) State that an app will calculate the product of three integers.
b) Declare the variables x, y, z and result to be of type int.
c) Prompt the user to enter the first integer.
d) Read the first integer from the user and store it in the variable x.
e) Prompt the user to enter the second integer.
f) Read the second integer from the user and store it in the variable y.
g) Prompt the user to enter the third integer.
h) Read the third integer from the user and store it in the variable z.
i) Compute the product of the three integers contained in variables x, y and z, and assign the result to the variable result.
j) Display the message "Product is", followed by the value of the variable result—use string interpolation.
Step by Step Solution
3.25 Rating (169 Votes )
There are 3 Steps involved in it
The solution to SelfReview Exercise 36 is as follows I Exercise 36 Productcs 2 Calculating ... View full answer
Get step-by-step solutions from verified subject matter experts
