Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write a program to find the sum of the array elements in c
language?

Answer Posted / vijay

#include<stdio.h>
#include<conio.h>
void main()
{
int a[10],i,sum=0;
clrscr();
for(i=0;i<10;i++)
{
printf("\n enter an elements in array");
scanf("%d",&a[i]);
}
for(i=0;i<10;i++)
{
sum=sum+a[i];
}
printf("\n sum is %d",sum);
}

Is This Answer Correct ?    27 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how is the examination pattern?

2017


largest Of three Number using without if condition?

1592


How many types of operator or there in c?

1089


How can I find the modification date of a file?

1277


Why & is used in scanf in c?

1097


Define the scope of static variables.

1127


What is the translation phases used in c language?

1119


What is the benefit of using const for declaring constants?

1044


I just typed in this program, and it is acting strangely. Can you see anything wrong with it?

1004


What does %c do in c?

983


How do I get an accurate error status return from system on ms-dos?

1113


Are pointers integers in c?

1073


i have a written test for microland please give me test pattern

2729


Is main an identifier in c?

1141


How do I copy files?

1050