REVERSE NUMBERS
Code :
#include<stdio.h>
int main()
{
int n = 0;
printf("=======================================\n");
printf(" NATURAL NUMBER IN REVERSE ORDER\n");
printf("=======================================\n");
printf("Enter initial number to start : ");
scanf("%d", &n);
printf("Reverse order:\n");
for(int i=n; i>=1; i--)
{
printf("\t\t%d\n", i);
}
printf("---------------------------------------\n");
return 0;
}
Come again Learn again !
« iCodeBuzz »
No comments:
Post a Comment