Java Program – a simple demonstration of using do-while Loop.

Output: