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 / s.m.jyo

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

Is This Answer Correct ?    7 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I get the current date or time of day in a c program?

1165


Can i use “int” data type to store the value 32768? Why?

1143


What are header files and what are its uses in C programming?

1130


What is the newline escape sequence?

1019


What does a function declared as pascal do differently?

1039


what do the 'c' and 'v' in argc and argv stand for?

1114


What is the meaning of c in c language?

1072


Explain how do you use a pointer to a function?

1051


How pointers are declared?

906


What is indirection?

1022


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

1089


Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

1047


What does static variable mean in c?

1059


Explain what will the preprocessor do for a program?

1002


What is exit() function?

964