Ruby Playground - patterns using for loop: Online Interpreter, Compiler & Editor | Sololearn