C++ Playground - How to generate a 1+2+...+n: Online Interpreter, Compiler & Editor | Sololearn