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
Which header file is used for clrscr?
What is bss in c?
What are the advantages and disadvantages of c language?
Explain c preprocessor?
what is the role you expect in software industry?
Can you pass an entire structure to functions?
What does c in a circle mean?
what is the basis for selection of arrays or pointers as data structure in a program
Tell me what is the purpose of 'register' keyword in c language?
Which is best linux os?
What is time null in c?
how to find anagram without using string functions using only loops in c programming
What is the hardest programming language?
Is c a great language, or what?
What are the different types of control structures?