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 null in c?
Explain what standard functions are available to manipulate strings?
swap 2 numbers without using third variable?
What is extern storage class in c?
What is c programing language?
What is string function c?
Explain what are its uses in c programming?
What is ponter?
while initialization of array why we use a[][2] why not a[2][]...?
What are lookup tables in c?
What are identifiers in c?
What are c preprocessors?
develop algorithms to add polynomials (i) in one variable
How will you find a duplicate number in a array without negating the nos ?
write a program in c language to print your bio-data on the screen by using functions.