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 are the different types of data structures in c?
How do I use strcmp?
Is Exception handling possible in c language?
what is reason of your company position's in india no. 1.
What are comments and how do you insert it in a C program?
write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34
What does void main () mean?
What is the code for 3 questions and answer check in VisualBasic.Net?
What does c mean?
Why enum is used in c?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
Where are the auto variables stored?
What is the difference between test design and test case design?
How do you list a file’s date and time?
List the difference between a "copy constructor" and a "assignment operator"?