Not understanding while loop

i am not able to understand while loop… pls elaborate.

It is just like other loop

while( condition )
{

}
The control flows within this while loop as long as the condition satisfies.
Like
int i=10;
while(i>0)
{
i–;
}
Here condition fails when i becomes 0. So loop ends after that

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.