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 / manjushree

Answer #2 doesnot count for integer 10.

int main()
{
int i,temp=0;
printf("sum of series is:");
for(i=0;i<10;i++)
temp+=i;
printf("%d",temp);
getch();
}

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is wild pointer in c?

1020


Explain can static variables be declared in a header file?

1107


What is null pointer constant?

1064


What is the use of sizeof () in c?

996


How can you read a directory in a C program?

1096


Explain about the functions strcat() and strcmp()?

992


Explain high-order and low-order bytes.

1052


When should we use pointers in a c program?

1083


What is exit() function?

968


Can a function argument have default value?

1094


Difference between constant pointer and pointer to a constant.

1070


Why we write conio h in c?

967


What is bubble sort in c?

1005


code for find determinent of amatrix

1920


How can I pad a string to a known length?

971