0
in second one , why is that "(x = {0} , y = {1} );
please help me understand
2 odpowiedzi
+ 4
Console.Write("I am {0}, and my age is {1}, {2}", name, age, greeting);
// The {x} is a place holder for a variable. It's just another way instead of using "I am + name + ", and my...
// And as the rules follows, the first index = 0, second = 1, third = 2, etc... etc...
+ 1
Console.WriteLine("x={0} y={1}",5,10);
// it's print x=5 y=10
0 inside the curly brace is value after ", and so on.