Java Playground - S = 1 + (1+2) + (1+2+3) + ... + n: Online Interpreter, Compiler & Editor | Sololearn