Write a programe print the sum of series 0,1,2,.....10

Answer Posted / sevak.yatrik777

main()
{
int i;
printf("sum of series is:");
for(i=0;i=10;i++)
i=i+i;
scanf("%d",&i);
printf("%d",i);
}

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 calloc() function?

621


an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational

805


What is the benefit of using const for declaring constants?

581


Explain Basic concepts of C language?

640


What is file in c language?

574






What are the two forms of #include directive?

640


What is the difference between void main and main in c?

621


What is size of union in c?

578


Why calloc is better than malloc?

570


Explain how can I write functions that take a variable number of arguments?

608


Which is best linux os?

558


Is printf a keyword?

755


How many loops are there in c?

575


What's a good way to check for "close enough" floating-point equality?

621


In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping

974