void print(int N,int i)
{
if(i==N)
{
cout<<i<<endl;
return;
}
cout<<i<<endl;
for(j=1;j<=3;j++)
{
print(i+1,N);
}
}
int main()
{
int i=0;
Int N=3;
print(N,i);
return 0;
}
I wnat to ask how this code is giving output, i am unable to understant when function is calling insode loop.