Check out example codes for "loops in coding". It will help you in understanding the concepts better.

Code Example 1

Do While X <= 5
 X = X + 5 
Loop

Code Example 2

Do
 Do_Something
Loop

Code Example 3

Do
 X = 5+2
Loop Until X > 5

Learn ReactJs, React Native from akashmittal.com