Showing wrong output at submission.please reply ASAP
@shakul Consider when n=16
Expected Output:
17
Your Output:
16
Dry run and check how your code goes wrong. Those multiple if conditions are making it incorrect.
Refer this code:
Hope this helps 
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.