Tired in findin the logic of Looping

Can anyone help and explain to me how the loops work sterp by step?