# Exercise 10

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");
}
else
{
  Console.WriteLine("Sarah Connor not found");
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Last Updated: May 1, 2020, 3:31 PM