here is my code -
#include<bits/stdc++.h>
#define ll long long
using namespace std;
void printno(ll n){
if(n==1){
cout<<1<<endl;
return;
}
printno(n-1);
cout<<n<<"\t";
}
int main(){
ll n;
cin>>n;
printno(n);
return 0;
}
i am using vs code. and my code not working for input greater than 10^5. what is the problem in my code? and how can i get output for input greater than 10^7.