What is output by the following C# code segment?
```
int temp = 180;
while (temp != 80)
{
if (temp > 90)
{
Console.Write("This porridge is too hot! ");
// cool down
temp = temp – (temp > 150 ? 100 : 20);
}
else
{
if (temp < 70)
{
Console.Write("This porridge is too cold! ");
// warm up
temp = temp + (temp < 50 ? 30 : 20);
}
}
}
if (temp == 80)
{
Console.WriteLine("This porridge is just right!");
}
```
a) This porridge is too cold! This porridge is just right!
b) This porridge is too hot! This porridge is just right!
c) This porridge is just right!
d) None of the above.
b) This porridge is too hot! This porridge is just right!
You might also like to view...
A basic disk can contain up to _________ primary partitions
a. One b. Two c. Three d. Four
Case-Based Critical Thinking QuestionsCase 4-1You have heard about pseudo-class selectors. But because you do not know what they are or how they can be helpful to you, you consult an online tutorial for more information.Which of the following do you learn is the selector for normal links?
A. a:link B. a:normal C. a:standard D. a:baseline