Introduction
Write a C program to print all natural numbers in reverse order
#include <stdio.h> int main() { int i, num; //Read a number from user printf("Enter any number: "); scanf("%d", &num); /*Running loop from the number entered by user, and Decrementing by 1*/ for(i=num; i>=1; i--) { printf("%d\n", i); } return 0; }
Result
![Write a C program to print all natural numbers in reverse order](https://techstudys.com/wp-content/uploads/2021/07/3-1.png)