What is wrong in the following code?
int total = 0 , num = 0 ;do{ // Read the next data cout << "Enter an int value , ” << "\nexit if the input is 0: " ; int num; cin >> num; total += num;}while (num != 0); cout << "Total is " << total << end⌉;
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.