Print 10 to 1 numbers - C Program

C program for countdown i.e print numbers from 10 to 1.

Solution:

#include<stdio.h>
int main()
{
      int i=1;
      for(i=10;i>=1;i--)
      {
            printf("%d\t",i); // \t gives the space between numbers.
      }
      return 0;
}


Output:

print 10 to 1 numbers