Find the Errors
Each of the program segments in this section has errors. Find as many as you can.
A) int num1 = 0, num2 = 10, result;
num1++;
result = ++(num1 + num2);
cout << num1 << " " << num2 << " " << result;
B) // This code should add two user-entered numbers.
int num1, num2;
char again;
while ((again == 'y') || (again == 'Y'))
cout << "Enter two numbers: ";
cin >> num1 >> num2;
cout << "Their sum is << (num1 + num2) << endl;
cout << "Do you want to do this again? ";
cin >> again;
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.