Search⌘ K

Challenge: Display a Right-Angle Triangle

Explore how to display a right-angle triangle pattern in C++. This lesson helps you practice using output statements and formatting in C++ to solve a coding challenge, strengthening your foundational coding skills.

We'll cover the following...

Problem statement

Your task is to display the following pattern on the screen:

& & & & & &
& & &
...