C++ Playground - pattern using one loop: Online Interpreter, Compiler & Editor | Sololearn