Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
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.