write a program to find the sum of the array elements in c
language?
Answer Posted / sumit aseri
/* programm of sum of array value*/
#include<stdio.h>
#include<conio.h>
void main()
{
int array[10],i,sum=0;
for(i=0;i<10;i++)
{
scanf("%d",&array[i];
printf("entered digits are=%d",array[i];
}
sum=sum+array[i]'
for(i=0;i<10;i++)
{
printf("the sum of digits=%d",sum);
}
getch();
}
/*join me on orkut search by name. i will solve your
problem*/
| Is This Answer Correct ? | 19 Yes | 13 No |
Post New Answer View All Answers
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
What is the use of header files?
When should the register modifier be used? Does it really help?
Tell me what is null pointer in c?
Write a c program to demonstrate character and string constants?
Find MAXIMUM of three distinct integers using a single C statement
Is struct oop?
What is a shell structure examples?
List the difference between a While & Do While loops?
What are terms in math?
Can we replace the struct function in tree syntax with a union?
What is FIFO?
Explain about block scope in c?
what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9
What's the right way to use errno?