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
What are the different data types in C?
What is the use of sizeof?
Ow can I insert or delete a line (or record) in the middle of a file?
What is typedef struct in c?
How many types of operator or there in c?
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
Explain modulus operator.
What is the best way of making my program efficient?
Why we use void main in c?
why programs in c are running with out #include
What is an example of structure?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
What is function prototype?
What is non linear data structure in c?