c# for int code example
Example 1: for c#
for (initializer; condition; iterator)
body
//Example :
for (int i = 0; i < 5; i++)
{
Console.WriteLine(i);
}
Example 2: for in c#
for (int i = 0; i < 5; i++)
{
Console.WriteLine(i);
}
for (initializer; condition; iterator)
body
//Example :
for (int i = 0; i < 5; i++)
{
Console.WriteLine(i);
}
for (int i = 0; i < 5; i++)
{
Console.WriteLine(i);
}