Print Out a Triangle
Learn about variables and loops, and use them to create the shape of a triangle.
We'll cover the following
Printing out characters in shapes is often used as beginner programming exercise, because they are easy to understand and visually interesting programs.
Problem
Write a program to print out hashes in a triangle shape, as shown below:
Get hands-on with 1400+ tech skills courses.