for loop dotnet code example
Example 1: for c#
for (initializer; condition; iterator)
body
//Example :
for (int i = 0; i < 5; i++)
{
Console.WriteLine(i);
}
Example 2: loop in c#
public class MyClass
{
void Start()
{
//Called when script inithilizes
}
void Update()
{
//called each fram
}
}
//note this is in C#