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