Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

how to solve using python

Answered: 1 week ago