Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Can we declare variables anywhere in c?

989


illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question

2056


How #define works?

1084


How to write c functions that modify head pointer of a linked list?

972


What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?

1317


How we can insert comments in a c program?

1107


What is structure in c language?

1148


What does void main return?

1103


Is c++ based on c?

1063


What is the purpose of 'register' keyword?

1087


Explain what are the __date__ and __time__ preprocessor commands?

1104


How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

16734


What is calloc in c?

1124


How do c compilers work?

1107


How can I manipulate strings of multibyte characters?

1102