Pages

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


No comments:

Post a Comment