Write a programe print the sum of series 0,1,2,.....10
Answer Posted / athiyaman
#include<stdio.h>
void main()
{
int i,sum=0;
for(i=0;i<=10;i++)
sum=sum+i;
printf("sum=%d",sum);
}
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is a function in c?
What is signed and unsigned?
Difference between malloc() and calloc() function?
What is calloc in c?
How we can insert comments in a c program?
What is a sequential access file?
What is d'n in c?
Differentiate Source Codes from Object Codes
What is typeof in c?
How many types of errors are there in c language? Explain
What is the total generic pointer type?
Why do we use return in c?
cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration
How many types of functions are there in c?
Ow can I insert or delete a line (or record) in the middle of a file?