Code is giving wrong answer


here is the link of code can u pls tell what is wrong in this

logic is correct
only change you have to do is use int not float
because in question it is not mention to print answer in decimal

i hv changed it to int but still it is not giving correct output