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 the difference between abs() and fabs() functions?
Can you please explain the difference between syntax vs logical error?
What is main () in c language?
What is boolean in c?
How to find a missed value, if you want to store 100 values in a 99 sized array?
What is the modulus operator?
What is the explanation for modular programming?
What is strcpy() function?
What is array in C
Why clrscr is used after variable declaration?
Explain bit masking in c?
How do you define CONSTANT in C?
What is 1d array in c?
What is the use of structure padding in c?
What is the use of pointers in C?