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
Get step-by-step solutions from verified subject matter experts
