//this is a program for the addition of numbers from 1-100
#include<stdio.h>
#include<conio.h>
void main()
{
int i=1,sum=0;
printf("\n\nPrinting the Sum of Numbers from 1-100");
do{
sum=sum+i;
i++;
}while(i<=100);
printf("\n\nSum=%d",sum);
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
int i=1,sum=0;
printf("\n\nPrinting the Sum of Numbers from 1-100");
do{
sum=sum+i;
i++;
}while(i<=100);
printf("\n\nSum=%d",sum);
getch();
}