Write a programe print the sum of series 0,1,2,.....10
Answer Posted / nithya
#include<stdio.h>
main()
{
int i,sum=0;
printf("sum of the series is");
for(i=0;i<10;i++)
{
sum=sum+i;
printf("%d",sum);
}
| Is This Answer Correct ? | 16 Yes | 5 No |
Post New Answer View All Answers
What are the scope of static variables?
Explain what is the benefit of using const for declaring constants?
Differentiate between full, complete & perfect binary trees.
How can I split up a string into whitespace-separated fields?
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above
What is the right way to use errno?
What is the function of volatile in c language?
Explain the use of #pragma exit?
explain what are pointers?
What is pointer and structure in c?
What does a function declared as pascal do differently?
What does c mean before a date?
How can you determine the size of an allocated portion of memory?
Why void main is used in c?