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 / akash patil

#include<stdio.h>
voind main()
{
int n=10;
printf("sum is %d",n*(n+1)/2;
getch();
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I pad a string to a known length?

1082


what are the 10 different models of writing an addition program in C language?

1942


What is the difference between mpi and openmp?

1357


What is the maximum length of an identifier?

1231


What is volatile keyword in c?

1086


Can you subtract pointers from each other? Why would you?

1005


Is boolean a datatype in c?

1128


c program for searching a student details among 10 student details

2141


List the difference between a "copy constructor" and a "assignment operator"?

1067


4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.

2242


What are the string functions? List some string functions available in c.

1041


What is #include stdio h and #include conio h?

1179


What is the significance of scope resolution operator?

1456


Apart from dennis ritchie who the other person who contributed in design of c language.

1476


What is output redirection?

1277