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 / mrs.ahmer

#include<stdio.h>
#include<conio.h>
void main()
{
int c,sum;
clrscr();
c=0;
sum=0;
while(c<=10)
{
printf("%d\n",c);
sum=sum+c;
c=c+1;
}
printf("sum is %d",sum);
getch();
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

please send me the code for multiplying sparse matrix using c

2153


What is the heap?

1209


How do you declare a variable that will hold string values?

1152


If null and 0 are equivalent as null pointer constants, which should I use?

1192


What is difference between stdio h and conio h?

1356


The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none

1233


What is action and transformation in spark?

1141


What are pragmas and what are they good for?

976


What are Macros? What are its advantages and disadvantages?

1141


What is the main difference between calloc () and malloc ()?

1139


What are bitwise shift operators in c programming?

1063


What are the functions to open and close the file in c language?

1021


What is the process to generate random numbers in c programming language?

1160


Simplify the program segment if X = B then C ← true else C ← false

2994


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

1043