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

Is it better to use a macro or a function?

1174


Why do we use int main instead of void main in c?

1159


What is the advantage of an array over individual variables?

1248


What are the different types of control structures in programming?

1144


What are the valid places to have keyword “break”?

1095


Why do we use pointer to pointer in c?

1093


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

1040


What is optimization in c?

1034


main() { printf("hello"); fork(); }

1209


Explain which function in c can be used to append a string to another string?

1100


What is mean by data types in c?

1041


Why do we use static in c?

1141


What is dynamic memory allocation?

1347


Explain high-order bytes.

1130


What is the difference between procedural and declarative language?

1155