Exercise: Printing Shapes
Get hands-on experience by solving the following challenge problems.
We'll cover the following
Write code to print out the shapes below. Press the “Test” button and look at the “Show Console” tab to see the shape printed by your implementation.
Note: The size of the shape is changeable, and you can assume in the code editor that a
width
variable has been initialized with the width of each shape.
Rhombus
The minimum value of width
for the rhombus is 2
.
Get hands-on with 1400+ tech skills courses.