Java Playground - 1 to n*n/2+n/2 pattern: Online Interpreter, Compiler & Editor | Sololearn