#include<stdio.h>
int main()
{
int i,n;
printf("Enter the last natural number\n");
scanf("%d",&n);
printf("All reverse natural number from %d to 1 is\n",n);
for(i=n;i>=1;i--)
{
printf("%d ",i);
}
}
OUTPUT
Enter the last natural number
8
All reverse natural number from 8 to 1 is
8 7 6 5 4 3 2 1
Visit Homepage
Comments
Post a Comment