program to find the sum of n integers