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
How can I get the current date or time of day in a c program?
Can i use “int” data type to store the value 32768? Why?
What are header files and what are its uses in C programming?
What is the newline escape sequence?
What does a function declared as pascal do differently?
what do the 'c' and 'v' in argc and argv stand for?
What is the meaning of c in c language?
Explain how do you use a pointer to a function?
How pointers are declared?
What is indirection?
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What does static variable mean in c?
Explain what will the preprocessor do for a program?
What is exit() function?