While Loop

The While Looping statement is used for the same purpose as For , the only difference being that condition is checked in the main statement while increment/decrement is done inside loop .

Syntax for 'While Loop'

while ( condition check  )

Example :while(i<7)

C Example



int main() {

	int i=1;

	while(i<6) {




	printf("loop over");

	return 0;