Write a programe print the sum of series 0,1,2,.....10
Answer Posted / mrs.ahmer
#include<stdio.h>
#include<conio.h>
void main()
{
int c,sum;
clrscr();
c=0;
sum=0;
while(c<=10)
{
printf("%d\n",c);
sum=sum+c;
c=c+1;
}
printf("sum is %d",sum);
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a struct c#?
What is keyword with example?
What is the size of empty structure in c?
What are the features of c languages?
write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
How many types of operators are there in c?
What is the scope of static variable in c?
What are the c keywords?
Differentiate fundamental data types and derived data types in C.
Is file a keyword in c?
What is static memory allocation?
a value that does not change during program execution a) variabe b) argument c) parameter d) none
How do you use a pointer to a function?
What is string constants?