# Exercise 12
What is output of this program. Do not use IDE to answer this question.
string fname = "Ali";
string lname = "Kamal";
if (fname.Length == 4)
{
Console.WriteLine($"{fname} length is 4");
}
else if (lname.Length == 5)
{
Console.WriteLine($"{lname} length is 5");
fname = "Ashraf";
}
else if (fname.Length % 2 == 0)
{
Console.WriteLine($"{fname} length is even");
}
else
{
Console.WriteLine("All checks failed");
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Instruction
Pay close attention to lines 10 and 12.