Introduction
The for loop
The while loop
Nested loops
break and continue
Summary
23. Exercise 3

Instruction

Excellent! Finally, question number three!

Exercise

Use nested loops to print the following pattern made of hyphens (-) and equality signs (=):

-=-=-=-=-=-=
=-=-=-=-=-=-
-=-=-=-=-=-=
=-=-=-=-=-=-
-=-=-=-=-=-=
=-=-=-=-=-=-
-=-=-=-=-=-=
=-=-=-=-=-=-

The pattern consists of 8 lines, each containing 12 characters.