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
Can we declare variables anywhere in c?
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
How #define works?
How to write c functions that modify head pointer of a linked list?
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
How we can insert comments in a c program?
What is structure in c language?
What does void main return?
Is c++ based on c?
What is the purpose of 'register' keyword?
Explain what are the __date__ and __time__ preprocessor commands?
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
What is calloc in c?
How do c compilers work?
How can I manipulate strings of multibyte characters?