write a 'c' program to sum the number of integer values
Answer Posted / durga bhavani
void 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 ? | 39 Yes | 18 No |
Post New Answer View All Answers
Explain the properties of union.
I need previous papers of CSC.......plz help out by posting them.......
is it possible to create your own header files?
What is c definition?
Do you know the difference between malloc() and calloc() function?
What are derived data types in c?
Are the variables argc and argv are local to main?
What is meant by inheritance?
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
string reverse using recursion
What functions are in conio h?
how can use subset in c program and give more example
What is pointer to pointer in c language?
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
What does calloc stand for?