Pls check the code i am not getting the full output as mentioned in question

n1 no`s print karne h
not till n1
u skip when it is a multiple of n2
so take a variable count which tells ki no of numbers printed are less than n1

1 Like


my all cases are not geeting satifesd

image

got it my mistake thank youuuuu

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.