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
What is default value of global variable in c?
Can a function argument have default value?
Is c is a low level language?
What are keywords c?
Explain what are its uses in c programming?
List the variables are used for writing doubly linked list program.
What is new line escape sequence?
what are # pragma staments?
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
Write a code to remove duplicates in a string.
Explain what are compound statements?
what is uses of .net
List a few unconditional control statement in c.
What is identifier in c?
What is a example of a variable?