Here is an example for your reference:
int k;
int j = 10;
for (k = 0, Console.WriteLine("Start: j={j}"); k < j; k++, j--, Console.WriteLine("Step: k={k}, j={j}"))
{
// Body of the loop.
}
for (; ; )
{
// Body of the loop.
}
Here is an example for your reference:
int k;
int j = 10;
for (k = 0, Console.WriteLine("Start: j={j}"); k < j; k++, j--, Console.WriteLine("Step: k={k}, j={j}"))
{
// Body of the loop.
}
for (; ; )
{
// Body of the loop.
}
3.135.182.221