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


Please Help Members By Posting Answers For Below Questions

Is c easier than java?

578


What is the advantage of c?

613


What does the && operator do in a program code?

700


How pointer is different from array?

585


What does the function toupper() do?

661






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

727


explain how do you use macro?

671


What is s or c?

603


What is the explanation for modular programming?

689


Explain how can you restore a redirected standard stream?

594


What are file streams?

574


What oops means?

588


What is the use of f in c?

561


What is the purpose of & in scanf?

603


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.

1599