repl.it
@anonymous/

IntentionalPastBubblefish

Ruby

No description

fork
loading
Files
  • main.rb
main.rb
1
2
3
4
5
6
7
f=->w,h{w*h<2??o:?_*(x=2*w+3)+$/+(?|+' o'*w+" |
")*h+?-*x}

puts f[4,2]
puts f[8,4]
puts f[3,5]
puts f[1,1]
ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux]