program to add n numbers