Program to print reverse order number from 10 to 1 using for loop in C.
Code Box
------------------------------------------
/*Program to print reverse order number */
#include<stdio.h>
#include<conio.h>
void main()
{
int i;
clrscr();
for(i=10;i>=1;i--)
{
printf("%d",i);
printf("\n");
}
getch();
}
No comments:
Post a Comment