# Exercise 4

What is the output of following program?

using System;

class MainClass
{
  public static void Main ()
  {
    Console.WriteLine("My name is {0}.\nHello {0}!", "Talha", "Mansoor");
  }
}
1
2
3
4
5
6
7
8
9

Explain the output.

Last Updated: Apr 26, 2020, 5:27 AM