Write a programe print the sum of series 0,1,2,.....10
Answer Posted / nithya
#include<stdio.h>
main()
{
int i,sum=0;
printf("sum of the series is");
for(i=0;i<10;i++)
{
sum=sum+i;
printf("%d",sum);
}
| Is This Answer Correct ? | 16 Yes | 5 No |
Post New Answer View All Answers
What would be an example of a structure analogous to structure c?
c program for searching a student details among 10 student details
Is it valid to address one element beyond the end of an array?
Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
What is the difference between local variable and global variable in c?
Why do we use header files in c?
what type of questions arrive in interview over c programming?
What is the difference between procedural and declarative language?
What is null in c?
differentiate built-in functions and user – defined functions.
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
What is the return type of sizeof?
What are the three constants used in c?
How can you return multiple values from a function?