0
What if I want to print "hello {0} world" ? With {0} printed as it is
How can I do that? (won't it expect a variable argument at the end of the write method like console. Write("hello world {0}", something)
2 Answers
+ 1
Console.WriteLine(@"Hello {0} world!");
0
Or you can simply write :
console.Write("hello world {{0}}", something)