Using a for Loop

The following is the output of the for loop: