What's Wrong with this code?

Problem

https://www.codechef.com/viewsolution/31782392

Try these inputs.
25
25.5

25
25.4

Then try to solve it ypurself following the steps in your solution

Hope this helps!!

Got it tq