## Sum the first N numbers in your program

Today I want to talk about a little math trick… sum the first N numbers, where N is an arbitrary number of your choice. To do the job, you may be tempted to use a loop, something similar to the code below (in C#): int result = 0; for (int i = 1; i <=…