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

What is null in c?

1009


Explain what standard functions are available to manipulate strings?

1028


swap 2 numbers without using third variable?

1086


What is extern storage class in c?

947


What is c programing language?

1047


What is string function c?

971


Explain what are its uses in c programming?

1020


What is ponter?

1224


while initialization of array why we use a[][2] why not a[2][]...?

2307


What are lookup tables in c?

953


What are identifiers in c?

1146


What are c preprocessors?

1129


develop algorithms to add polynomials (i) in one variable

2111


How will you find a duplicate number in a array without negating the nos ?

2085


write a program in c language to print your bio-data on the screen by using functions.

6735