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

Is anything faster than c?

579


What are identifiers c?

560


In C programming, what command or code can be used to determine if a number of odd or even?

618


How important is structure in life?

586


c program for searching a student details among 10 student details

1650






In c language can we compile a program without main() function?

573


What is register variable in c language?

596


What are run-time errors?

596


Is swift based on c?

636


What is const keyword in c?

739


Why does the call char scanf work?

613


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

556


Explain what is the stack?

634


What are qualifiers and modifiers c?

543


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

1924