Answer not coming

@deepaksehrawat150_50930f2fcb83f47e check this and tell me if u understood or not

no,please explain these steps

@deepaksehrawat150_50930f2fcb83f47e ok so
Think like that after printing 0 we need to print 1 and all numbers starting with one.
Then 2 and all numbers starting with 2 and so on after that.
So we can do this in for loop for digits 1 - 9.We can call a print function and pass it 1 or 2 or 3 till 9.
In Function print 1 and before calling print for 2,we will call print for 10*1.
Next number is 10 and then 11,12,13…so on like upto 19.We can print this using a for loop
But lexicographicAlly 100 comes first. then So 10 will call this print function again but this time multplied by 10 so that 100 and its sequence can be printed

@deepaksehrawat150_50930f2fcb83f47e do u understood now??
please rate

1 Like

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.