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 'c' program to sum the number of integer values

Answer Posted / durga bhavani

void main()
{
int a[25],n,i,sum=0;
printf("enter n value");
scanf("%d",&n);
printf("\n Enter the numbers");
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
for(i=0;i<n;i++)
sum+=a[i];
printf("\nSum of the given numbers is %d",sum);
}

Is This Answer Correct ?    39 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an identifier?

996


Is c a great language, or what?

1069


What are register variables? What are the advantage of using register variables?

1143


Write a program to identify if a given binary tree is balanced or not.

1108


How to implement a packet in C

2853


How do you list a file’s date and time?

1040


What is a wrapper function in c?

1086


What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?

1249


hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?

2079


An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above

1131


what will be maximum number of comparisons when number of elements are given?

1867


What is line in c preprocessor?

1017


What is the difference between new and malloc functions?

1072


How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

1046


What are enums in c?

1143