Program to print numbers from N to 1 in reverse order | Java program to print all numbers between 1 to N in reverse order ; Recursive function to print from N to 1 ; Driver code
import java . util . * ; class GFG { static void PrintReverseOrder ( int N ) { for ( int i = N ; i > 0 ; i -- ) System . out . print ( + i + " ▁ " ) ; } public static void main ( String [ ] args ) { int N = 5 ; PrintReverseOrder ( N ) ; } }