Previous | Home | Next |
/** Sum of starting 10 numbers **/ #include<stdio.h> #include<conio.h> void main() { int sum,n; sum=0; n=1; clrscr(); while(n<=10) { sum=sum+n; n=n+1; } printf("sum=%d\n",sum); getch(); }
Previous | Home | Next |
|
C Programming language
|