In most computer programming languages, a while loop is a control flow statement that allows code to be executed repeatedly based on a given Boolean condition. The while loop can be thought of as a repeating if statement.
#include “stdio.h”
int main ()
{
int i = 0;
while (i <= 100) { printf ("%d ", i); i++; } return 0; }
