Back To C Loops Index
//program to find sum of numbers from 1 to 10 using while statement #include
#include
void main() { int i; int sum=0; i=1; clrscr(); while(i<=10) { sum=sum+i; i++; } printf("sum of numbers is %d",sum); getch(); }