Using a for loop and while loop.

Printable View