Pls help me in debugging my code for lent money

I am new to competitive programming and would appreciate some help
https://www.codechef.com/viewsolution/24853159

bro! i think once you need to visit ur link :joy:

1 Like

Hey! You gave the wrong link to your solution. Open the problem and go to my submissions, then open your submission and copy that link.

Sorry…I have changed the link

Hey talisha ,I think your logic is not right for AC.you should think more about the problem with copy and pen(not use keyboard until you find solution) .
hint : think with k for even and odd.