My Question on Loops?

I Don’t understand where use to while loop, do-while, for and which program