What will the following program display if the user enters 40 for testl and 3C for test2?
using namespace std;
int main()
{
cout << "Enter your first test score: ";
int testl;
cin >> test1;
cout << "Enter your second test score: ";
int test2;
cin >> test2;
int sum = testl + test2;
if (sum > 50)
testl += 10;
test2 += 10;
int sum = testl + test2;
}
cout << "test 1: " << testl << endl;
cout << "test 2: " << test2 << endl;
cout << "sum : " « sum << endl;
return 0;
}
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.