# Exercise 2
What is the output of following program?
using System;
class MainClass
{
public static void Main ()
{
Console.Write("My name is {-1}", "Talha");
}
}
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
Can you have a negative number in format specifier like {-1}
?
← Exercise 1 Exercise 3 →