Question: Given the following segment of code, what will be the output? int x = 5; if (x == 2) Console.WriteLine(Brown, brown, run aground.); else Console.WriteLine(Blue,

Given the following segment of code, what will be the output?

int x = 5;

if (x == 2)

Console.WriteLine("Brown, brown, run aground.");

else Console.WriteLine("Blue, blue, sail on through.");

Console.WriteLine("Green, green, nice and clean.");

a. Brown, brown, run aground.

b. Blue, blue, sail on through.

c. Brown, brown, run aground.

Blue, blue, sail on through.

d. Blue, blue, sail on through.

Green, green, nice and clean.

e. 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 Systems Analysis Design Questions!