178k views
0 votes
What is the output of the following code segment if the user enters 90 for the score? cout << "Enter your test scores: "; cin >> test_score; if (test_score < 60) cout << "You failed the test. " << endl; if (test_score > 60) cout << "You passed the test."; else cout << "You need to study harder next time." << endl; Group of answer choices

1 Answer

2 votes

Answer:

The output will be "You passed the test."

Since 90 is greater than 60 .

User Brian Brownton
by
5.1k points