Write a program to display the sum of n numbers where n is given by the user. code example
Example: sum of all n integers
Sum of n integers 1 + 2 + 3 + ... + n = n * (n + 1) / 2
Sum of n integers 1 + 2 + 3 + ... + n = n * (n + 1) / 2