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
Explain how do you determine a file’s attributes?
What is the benefit of using #define to declare a constant?
How can I find out the size of a file, prior to reading it in?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
What are the advantages of union?
When is a void pointer used?
Is c still relevant?
What is typedef?
hi any body pls give me company name interview conduct "c" language only
Write a function that will take in a phone number and output all possible alphabetical combinations
Explain what is the difference between text files and binary files?
write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.
Why does not c have an exponentiation operator?
What is console in c language?
Can we access the array using a pointer in c language?