Java/rec1.java
package recursion;

public class rec1 {

    public static void printNum(int n){
        if(n==0){
            return;
        }
        System.out.println(n);
        printNum(n-1);
    }

    public static void main(String[] args) {
        int n = 5;
        printNum(n);

    }
}
