What is While Loop?

AdSense Placeholder (Header)

What is While Loop?

While loop is the Entry Control loop It's having 3 parts Initialisation,Condition,Increment/Decrement All 3 parts are optional. you can skip all or anyone according to your need or logic of your program. Syntax:-
initialisation;
while( conditions) { { //Loop body Instructions //this is a place where you write a set of statements perform again and again. increment/decrement }