Write a programe print the sum of series 0,1,2,.....10
Answer Posted / manjushree
Answer #2 doesnot count for integer 10.
int main()
{
int i,temp=0;
printf("sum of series is:");
for(i=0;i<10;i++)
temp+=i;
printf("%d",temp);
getch();
}
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is wild pointer in c?
Explain can static variables be declared in a header file?
What is null pointer constant?
What is the use of sizeof () in c?
How can you read a directory in a C program?
Explain about the functions strcat() and strcmp()?
Explain high-order and low-order bytes.
When should we use pointers in a c program?
What is exit() function?
Can a function argument have default value?
Difference between constant pointer and pointer to a constant.
Why we write conio h in c?
What is bubble sort in c?
code for find determinent of amatrix
How can I pad a string to a known length?