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

Answer Posted / s.m.jyo

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 ?    7 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above

648


Explain the concept and use of type void.

646


What is the equivalent code of the following statement in WHILE LOOP format?

783


What is the use of getchar() function?

641


How to write a code for implementing my own printf() and scanf().... Please hep me in this... I need a guidance... Can you give an coding for c... Please also explain about the header files used other than #include...

4918






What are the types of data files?

743


What is the purpose of 'register' keyword?

707


Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant

678


What is page thrashing?

663


What is the difference between the local variable and global variable in c?

546


What is a good data structure to use for storing lines of text?

615


What is sizeof return in c?

629


What is f'n in math?

632


What is the purpose of & in scanf?

616


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

1874