0

Help setting up this program on C++

#include <iostream> using namespace std; int main() { int x, z, y; int product = x * z * y; cout << "Enter fisrt number"; cin >> x; cout << "Enter another number"; cin >> z; cout << "Enter the third number"; cin >> y; cout << "The product is" << product; return 0; }

3rd Feb 2019, 6:20 PM
Jesu
Jesu - avatar
1 Answer
+ 1
Just move int product = x... between cin << y; and cout << "product is ... if this means for you to set up (to correct the error)
3rd Feb 2019, 6:33 PM
Charlie S
Charlie S - avatar