program to print 1-10 by using do while loop.



void main() { int i=1; clrscr(); do { printf("%d\n",i); i++; }while(i<=10); getch(); } output: 1 2 3 4 5 6 7 8 9 10