While Loop not clear

Hi Sir,

Do you have any other example of while loop as i could not understand with this example how it actually works.