Tuesday, February 9, 2016

C program to print 10 to 1 numbers using for loop.

#include<stdio.h>
int main()
{
int i;
for(i=10; i>0; i--)
{
printf("%d ", i);
}
  return 0;
}

Output of the program:
10 9 8 7 6 5 4 3 2 1


1 comment:

  1. For more details of C programming
    Visit us on
    Cprogramming-blog.blogspot.com

    ReplyDelete