Competitive Programming Solutions

GitHub
back to dashboard

C. Print from N to 1

Codeforces - Sheet #7 (Recursion) · limit: 1s · memory: 64MB · view on codeforces

input

4

output

4 3 2 1
Main.java
static void solve() {

        // Write your solution here
        int i = in.nextInt();
        print(i);
    }