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
How is pointer initialized in c?
Explain how do you determine the length of a string value that was stored in a variable?
how to write a c program to print list of fruits in alpabetical order?
c language interview questions & answer
Where define directive used?
What is an expression?
what is recursion in C
In c language can we compile a program without main() function?
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
How can I do graphics in c?
Is it better to bitshift a value than to multiply by 2?
What is a macro?
a c code by using memory allocation for add ,multiply of sprase matrixes
Are global variables static in c?
Describe the header file and its usage in c programming?