write a 'c' program to sum the number of integer values
Answer Posted / chandra
#include<stdio.h>
#include<conio.h>
main()
{
int a[25],n,i,sum=0;
printf("enter n value");
scanf("%d",&n);
printf("\n Enter the numbers");
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
for(i=0;i<n;i++)
sum+=a[i];
printf("\nSum of the given numbers is %d",sum);
}
| Is This Answer Correct ? | 11 Yes | 5 No |
Post New Answer View All Answers
i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me
hi send me sample aptitude papers of cts?
Why c language is called c?
What is structure padding in c?
How can I open a file so that other programs can update it at the same time?
can we implement multi-threads in c.
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
Are pointers really faster than arrays?
What do you mean by recursion in c?
What is function prototype?
How can I sort more data than will fit in memory?
What is FIFO?
why programs in c are running with out #include
How is pointer initialized in c?
Can you think of a logic behind the game minesweeper.