how to write a multiple for loop c# code example
Example 1: declare multiple variables in for loop c#
for (var (i, j) = (0, (MyClass) 1); j < 3; i++, j++)
{
Console.WriteLine(i);
}
Example 2: c# nested for loop
for ( init; condition; increment ) {
for ( init; condition; increment ) {
statement(s);
}
statement(s);
}