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 acronym for ansi?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
What are variables and it what way is it different from constants?
What is n in c?
How can I implement sets or arrays of bits?
Explain how do you print an address?
What language is windows 1.0 written?
What is the most efficient way to count the number of bits which are set in an integer?
what are the 10 different models of writing an addition program in C language?
What is the auto keyword good for?
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above
Can variables be declared anywhere in c?
Describe newline escape sequence with a sample program?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
What does stand for?