Giving wrong answer

Hello it is showing wrong answer to every case but my logic is correct. Here is link to my soution: https://ide.codingblocks.com/s/312335

hey @mr.dheeraj000
add new after every Test Case :
correct code :