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
how is the examination pattern?
largest Of three Number using without if condition?
How many types of operator or there in c?
How can I find the modification date of a file?
Why & is used in scanf in c?
Define the scope of static variables.
What is the translation phases used in c language?
What is the benefit of using const for declaring constants?
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
What does %c do in c?
How do I get an accurate error status return from system on ms-dos?
Are pointers integers in c?
i have a written test for microland please give me test pattern
Is main an identifier in c?
How do I copy files?