Https://ide.codingblocks.com/s/280445

will u please check my code it giving errors

You have used variable j in line 19 by mistake. Correct that and then check.

i make changes bhaiya but this tim eit is not giving a correct output

ok…share the link of your updated code.

bhaiya u saw the code


In the last else {} container
If you get it hit a like button else feel free to ask!!

-regards from @rkrishna

@Aditya-Kushwaha-914550392281281 Also you did not take n as input.

Check now.

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.