Answer Posted / leelanarasimhareddy
void main()
{
int a[20];
printf("enter no of values");
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
for(i=0;i<n;i++)
{
sum=sum+a[i];
}
printf("%d",sum);
}
Is This Answer Correct ? | 63 Yes | 86 No |
Post New Answer View All Answers
Explain what is the concatenation operator?
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
Write a program on swapping (100, 50)
Explain About fork()?
What is meant by keywords in c?
What is sizeof array in c?
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
What does s c mean on snapchat?
What are header files in c programming?
Can a void pointer point to a function?
What is a scope resolution operator in c?
What is identifiers in c with examples?
Can we declare function inside main?
How do I get an accurate error status return from system on ms-dos?
Explain the use of 'auto' keyword