//Program to calculate the sum of all elements of array.
#include<stdio.h>
#include<conio.h>
void main()
{
int a[10],i,sum=0;
clrscr();
printf(" enter the values of elements");
for(i=0;i<10;i++)
{
scanf("%d",&a[i]);
sum=sum+a[i];
}
printf("\n sum of values of array %d",sum);
getch();
}