Quick actions

cmd+k|ctrl+k

Navigation

Languages

no 4

Snippet info

Language

Cpp

Visibility

public

Author

creditfool

Created

2020-11-19T04:15:55Z

Updated

2020-11-19T04:15:55Z

#include <iostream>
using namespace std;

int main() {
    int n;
    cin >> n;
    
    for (int i=0; i<n; i++) {
        cout << i;
    }
    
    for (int i=n-1; i>=0; i--) {
        cout << i;
    }
}
INFO