Using the statements you wrote in Exercise 3.5, write a complete app that calculates and displays the

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

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.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Visual C# How to Program

ISBN: 978-0134601540

6th edition

Authors: Paul J. Deitel, Harvey Deitel

Question Posted: