Other contributors have said "How do you loop codes of turbo c?" is the same question as "What is the while loop in C programming?" If you believe that these are not asking the same thing and should be answered differently, click here

What is the while loop in C programming?

Answer:

The "while" loop is a function built-in C language which allows you to loop certain piece of code until the criteria is met instead of retyping the code all over again.

For example, this is C# thought (similar concept, different syntax):

string userInput = "0"; - define the variable to something else other than 'end' so the while loop executes the first time!

while(userInput != "end")
{
Console.WriteLine("The look will continue to print this text unless you type the word 'end' at the prompt!");

Console.WriteLine("Enter text: ");
userInput = Console.ReadLine();
}

First answer by Fenik. Last edit by Fenik. Contributor trust: 1 [recommend contributor recommended]. Question popularity: 1 [recommend question].