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
Explain the priority queues?
How can I remove the trailing spaces from a string?
What are the types of assignment statements?
How do I get an accurate error status return from system on ms-dos?
List some of the dynamic data structures in C?
What are the different types of objects used in c?
what are the 10 different models of writing an addition program in C language?
How many levels of pointers can you have?
Explain what are the different file extensions involved when programming in c?
Why is void main used?
What are loops in c?
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
write an algorithm to display a square matrix.
How can I remove the leading spaces from a string?
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor