declare a variables with multiple value c# code example
Example 1: intialize multiple variavles in c#
int i = 5, y = 10, x = 100;
//once the variables are intialized if you wanna assign the
// same amount to multiple variables
i = y = x = 100;
Example 2: declare multiple variables in for loop c#
for (var (i, j) = (0, (MyClass) 1); j < 3; i++, j++)
{
Console.WriteLine(i);
}