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
Is c easier than java?
What is the advantage of c?
What does the && operator do in a program code?
How pointer is different from array?
What does the function toupper() do?
a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none
explain how do you use macro?
What is s or c?
What is the explanation for modular programming?
Explain how can you restore a redirected standard stream?
What are file streams?
What oops means?
What is the use of f in c?
What is the purpose of & in scanf?
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.