...

/

Print a Big Diamond of Variable Size

Print a Big Diamond of Variable Size

Learn to perform type conversion and mathematical operations, and learn to take inputs from a user in Ruby.

Problem

Ask the user for the size of the diamond (based on the total number of rows) and then print out a diamond shape using hash characters #.

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