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

Write a program to identify if a given binary tree is balanced or not.

1236


What is the difference between strcpy() and memcpy() function in c programming?

1135


What does void main () mean?

1306


What is a method in c?

1214


Where static variables are stored in c?

1174


Why string is used in c?

1053


Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor

3613


Explain function?

1142


What does d mean?

1171


Are local variables initialized to zero by default in c?

1102


What is the difference between NULL and NUL?

1354


What is union and structure in c?

1292


Differentiate fundamental data types and derived data types in C.

1092


What is operator promotion?

1132


How are structure passing and returning implemented?

1092