Exercise: Printing Shapes
Explore how to print geometric shapes such as rhombus, hollow square, and heart in Ruby. Learn to apply loops and conditional statements to create these patterns. This lesson helps you practice controlling program flow and variable usage to build interactive console output based on defined width.
We'll cover the following...
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: ...