Submission of code shows wrong answer for all cases

This is my code link - https://ide.codingblocks.com/s/196849

My code gives correct answer after compiling but fails all the test cases showing wrong answer.

hi @lalchetna03 you need to print answer for each test case in a new line. With this logic, one test case will still fail however.

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.

Sure, thank you so much.