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 the difference between struct and union in C?
Write a C program to count the number of email on text
What is logical error?
What is file in c preprocessor?
Is a house a mass structure?
What tq means in chat?
What are local variables c?
How can I make sure that my program is the only one accessing a file?
What is NULL pointer?
What is pointer to pointer in c?
Explain 'bus error'?
Write a program to implement queue.
A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers
What is a MAC Address?
How can you read a directory in a C program?