Given an integer n, find and print the sum of numbers from 1 to n. code example Example: sum of all n integers Sum of n integers 1 + 2 + 3 + ... + n = n * (n + 1) / 2