write a program to find the sum of the array elements in c
language?
Answer Posted / sayeed khan
#include<stdio.h>
#include<conio.h>
int main()
{
int i,sum=0,a[30],n;
printf("Enter The Number=");
for(i=0;i<n;i++);
scanf("%d",&n);
sum=sum+a[i];
printf("the sum is %d\n",sum);
getch();
return 0;
}
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Why header file is used in c?
Who is the founder of c language?
What is %d used for?
Can we add pointers together?
how to make a scientific calculater ?
How can this be legal c?
Which is best book for data structures in c?
Write a program to identify if a given binary tree is balanced or not.
Explain what is a const pointer?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
please give me some tips for the placement in the TCS.
given post order,in order construct the corresponding binary tree
Why does not c have an exponentiation operator?
What does != Mean in c?