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

#include<stdio.h>
main()

{
int i,sum=0;
printf("sum of the series is");
for(i=0;i<10;i++)
{

sum=sum+i;
printf("%d",sum);
}

Is This Answer Correct ?    16 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the scope of static variables?

1119


Explain what is the benefit of using const for declaring constants?

968


Differentiate between full, complete & perfect binary trees.

1055


How can I split up a string into whitespace-separated fields?

1006


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

2011


application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above

1016


What is the right way to use errno?

1006


What is the function of volatile in c language?

1072


Explain the use of #pragma exit?

1117


explain what are pointers?

970


What is pointer and structure in c?

1079


What does a function declared as pascal do differently?

1045


What does c mean before a date?

1109


How can you determine the size of an allocated portion of memory?

1241


Why void main is used in c?

1003