#include<stdio.h>
#include<stdlib.h>
main() 
{ 
int arr[50],i,n,sum=0; 
printf("      How many numbers you want to enter ?\n "); 
scanf("%d",&n); 
printf("      Please,Enter the numbers : "); 
for(i=0;i<n;i++) 
{ 
     scanf("%d",&arr[i]); 
} 
for(i=0;i<n;i++) 
{ 
     sum=sum+arr[i]; 
} 
printf("\n      The sum of the given numbers is : %d\n",sum); 
system("pause"); 
} 