How do I make a Ruby method that makes a diamond of asterisks with 'n' width?

前端 未结 0 1658
面向向阳花
面向向阳花 2021-02-03 20:41

I\'m trying to make a method that returns a string that looks like a diamond shape when printed on the screen, using asterisk (*) characters. I want to remove a

相关标签:
回答
  • 消灭零回复
提交回复
热议问题