Question: What is output by the following C# code segment? int temp; temp = 200; if ( temp > 90 ) Console.WriteLine( This porridge is too

What is output by the following C# code segment?

int temp;

temp = 200;

if ( temp > 90 )

Console.WriteLine( "This porridge is too hot." );

if ( temp < 70 )

Console.WriteLine( "This porridge is too cold." );

if ( temp == 80 )

Console.WriteLine( "This porridge is just right!");

---------------------------------------

A.

This porridge is too hot.

B.

This porridge is too cold.

C.

This porridge is just right!

D.

None of the above.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!