In programming, one of the first exercise asked for practice is to calculate the sum of the n first positive integers. It is to illustrate the capacity to repeat a process easily and with a few lines of computers.
To do so, use a for loop with a range.
INGInious