My code works fine for n=7 but it goes wrong for n=8 and mostly problem is with even number

please review my code

Hi Arvind,
Your code is right and this question is only for odd numbers.

1 Like