My output is same as the required by the question. Also my logic is also same as I checked the answer video but on submission its showing wrong answer even on successful execution and correct output for all test cases.
MY CODE:
When I wrote the code on code chef platform, this is what the output came. Thats why I raised this query. But yes now when I run it on vs code, its showing the same output as commented by you.
Kindly tell me why two different outputs are coming for the very same code and I will be very thankful if you help to correct my mistake.
I know but when I removed the comma in scanf, all the output was coming out to be 0.00. I don’t know why but the correct answer came when I inserted comma in between.