Using the statements you wrote in Exercise 2.4, write a complete program that calculates and displays the product of three integers. Add comments to the code where appropriate. [Note: You’ll need to write the necessary using declarations.]
What will be an ideal response?
```
// Calculate the product of three integers
#include
using namespace std;
// function main begins program execution
int main()
{
int x; // first integer to multiply
int y; // second integer to multiply
int z; // third integer to multiply
int result; // the product of the three integers
cout << "Enter three integers: "; // prompt user for data
cin >> x >> y >> z; // read three integers from user
result = x * y * z; // multiply the three integers; store result
cout << "The product is " << result << endl; // print result; end line
} // end function main
```
You might also like to view...
You can use LinkedIn to gain an introduction to a specific individual you'd like to know, via connections with mutual contacts
Indicate whether the statement is true or false
You can save a slide as a picture, using the ________ format
A) .txt B) .potx C) .docx D) .jpg
The method getContentPane of the class JFrame is used to access the content pane of the window.
Answer the following statement true (T) or false (F)
When you use a picture to define a bullet, the image is stored in the:
a. Bullet Library b. Building Blocks Organizer c. Quick Parts gallery