Answers for "loop until c# true"

C#
1

c# while true loop

while (true)//the "true" keyword mean it will run forever, you can change it too (example while (i > 3))
{
	//Code here
    System.Threading.Thread.Sleep(100) // Convertion: 1000 = 1 second
    //if you are using a while true statment, your program will frezze without this Sleep keyword
}
Posted by: Guest on October-25-2021

C# Answers by Framework

Browse Popular Code Answers by Language