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
How can I pad a string to a known length?
what are the 10 different models of writing an addition program in C language?
What is the difference between mpi and openmp?
What is the maximum length of an identifier?
What is volatile keyword in c?
Can you subtract pointers from each other? Why would you?
Is boolean a datatype in c?
c program for searching a student details among 10 student details
List the difference between a "copy constructor" and a "assignment operator"?
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.
What are the string functions? List some string functions available in c.
What is #include stdio h and #include conio h?
What is the significance of scope resolution operator?
Apart from dennis ritchie who the other person who contributed in design of c language.
What is output redirection?