3. puts for printing

3.5 Print multiple times

In order to print something multiple times, we need to put the code in the do end block.

Execute the code and you will see that whatever is in the do end block is executed 10 times.