I couldn't understand why {0} {1}etc are used in equality with variables to print same things in c# | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I couldn't understand why {0} {1}etc are used in equality with variables to print same things in c#

class Program { static void Main(string[] args) { int x = 10; double y = 20; Console.WriteLine("x = {0}; y = {1}", x, y); } } }

24th Sep 2018, 12:59 PM
haris Ahmad
haris Ahmad - avatar
0 Answers