#include <iostream>
using namespace std;

void print(int n){
    if(n==0) return;
    cout<<n<<endl;
    print(n-1);
    
}
int main() {
    int n;
    cin>>n;
    print(n);
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: