in the below mention code how can we convert by looping.

Printable View