Not able to understand code

#include

using namespace std;

void lx(int start,int end)
{
int a;
if(start==0)
a=1;
else
a=0;
for(int i=a;i<=9;i++)
{
if(start10+i>end)
return;
cout<<start
10+i<<" ";
lx(start*10+i,end);
}
}

int main()
{
cout<<"0 ";
int n;
cin>>n;
lx(0,n);
}

hi @uvanshika,
save your code i can see hello world only

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.