# Exercise 11

What is output of this program. Do not use IDE to answer this question.



 






 

 








string fname = "Harry";
string lname = "Connor";
if (fname == "Sarah")
{
  Console.WriteLine("Found Sarah");
}
else if (lname == "Connor")
{
  Console.WriteLine("Found Connor");
  fname = "Sarah"
}
else if (fname == "Sarah")
{
  Console.WriteLine("Found Sarah");
}
else
{
  Console.WriteLine("Sarah Connor not found");
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

# Instruction

Pay close attention to lines 3, 10 and 12.

Last Updated: May 1, 2020, 3:31 PM