Watch the video about Gauss's Addition in the Resources tab to see how you can use the formula for your function.

Create a function that adds all the numbers together from 1 to n or, if two numbers are given: n to m. The input can be in any order.
Gauss({ 100 }) ➞ 5050 // From the video
Gauss({ 5001, 7000 }) ➞ 12001000 // Also ^^
Gauss({ 1975, 165 }) ➞ 1937770for or while loop.