a program to extract numbers from an input stream, compute their product, and display the result. Use the integer 0 as a sentinel.
What will be an ideal response?
```
#include
using namespace std;
int main()
{
int product, item;
product = 1;
cout << "Enter the numbers to multiply. 0 to stop." << endl;
cout << ">>> ";
cin >> item;
while (item != 0) {
product *= item;
cout << ">>> ";
cin >> item;
}
cout << "The product is " << product << endl;
return 0;
}
```
Computer Science & Information Technology
You might also like to view...
Windows Deployment Service (WDS), using the Deployment Server role, must have the following items available to the WDS Server: DHCP, DNS, and AD DS
Indicate whether the statement is true or false
Computer Science & Information Technology
Does Route 53 support MX Records?
A. Yes. B. It supports CNAME records, but not MX records. C. No D. Only Primary MX records. Secondary MX records are not supported.
Computer Science & Information Technology