While Loop Tricks :D

code:

output: