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 this infamous null pointer, anyway?

1106


What is meant by inheritance?

1156


How many bytes are occupied by near, far and huge pointers (dos)?

1220


Write a program to implement queue.

1176


What is void main () in c?

1253


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

1089


What does %d do in c?

1014


what are the facialities provided by you after the selection of the student.

2338


the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?

1047


What does *p++ do? What does it point to?

1124


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1772


What are different types of operators?

1099


How will you divide two numbers in a MACRO?

1188


Explain what is a stream?

1145


Explain the advantages of using macro in c language?

1053