by Ricardo Fernández Serrata
3 different ways to add Natural numbers from 1 to N (both inclusive). Or compute the Nth Triangular Number (the Additive equivalent of Factorial)
Start "Input", input some number (obviously), and then start any or all the other flows to see that they're all correct.
I had to apply an offset of +1 to the For Loops because they always start counting at 0. If you want to count from 0 to N-1, delete the offset and make the alt xpr like this: inp * (inp - 1) / 2
Reviews and ratings can be submitted in the app.