Print Out a Half Diamond

Let's learn about comparison operators and control flow statements, and then use them to create the shape of a half diamond.

Problem

Write a program that prints out half of the diamond shape using hash characters, as shown below:

Access this course and 1400+ top-rated courses and projects.