Answered step by step
Verified Expert Solution
Question
1 Approved Answer
23. What is the output of the following code fragment? float average = 100.0; if (average >= 70.0) if (average < 80.0) cout < <
23. What is the output of the following code fragment?
float average = 100.0;
if (average >= 70.0)
if (average < 80.0)
cout << "GOOD" <
else if(average < 60.0)
cout<< "PASS"<
else
cout << "FAIL"<
(a) GOOD
(b) PASS
(c) FAIL
(d) No output
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started