Answer Posted / deepshree sinha
#include<stdio.h>
#include,conio.h>
void main()
{
int i,a[6],s=0;
printf("enter the values");
for(i=0;i<5;i++)
{
scanf("%d ",7a[i]);
s=s+a[i];
}
printf("sum of five digits=%d',s);
getch();
}
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is the difference between arrays and pointers?
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
Is c# a good language?
What are the advantages of the functions?
What is the difference between printf and scanf in c?
What is a program?
What does void main return?
Explain how to reverse singly link list.
What is structure packing in c?
Why do we use main function?
an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational
What is a char in c?
what will be maximum number of comparisons when number of elements are given?