Competitive Programming Solutions

GitHub
back to dashboard

B. Print from 1 to N

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

input

5

output

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

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