Problem Solving: Printing Triangular Pattern

Let's create different triangular patterns using nested loops.

Printing a triangular pattern

In this lesson, we’ll create different triangular shapes. We’ll learn to identify the patterns within different shapes by making tables and then writing the conditions of the for loops based on the observed patterns.

We’ll also be making functions to create each shape. So let’s begin!

Get hands-on with 1200+ tech skills courses.