C program to find the sum of ‘n’ numbers using array