do loop in c# code example
Example 1: c# do loop
int i = 0;
do
{
Console.WriteLine("Value of i: {0}", i);
i++;
} while (i < 10);
Example 2: loop in c#
public class MyClass
{
void Start()
{
//Called when script inithilizes
}
void Update()
{
//called each fram
}
}
//note this is in C#