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:

Get hands-on with 1400+ tech skills courses.