program to print 1-10 in reverse order by using while loop.



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