c program to print 10 to number using do while loop


#include<stdio.h>
#include<conio.h>
void main()
{
 int n;
 clrscr();

 printf("\n"); //for new line

 // Do While Loop
 n=10;  // Initialize
 do
  {
   printf(" %d",n);
   n--;          // Decrement
  }
  while(n>=1); // Condition


 getch();
 }