Fractional knapsack

question: https://hack.codingblocks.com/contests/c/368/2254
one test case wrong
https://ide.codingblocks.com/s/70359

@AASTHA011 hey aastha use this line instead of cout printf("%0.1lf", fina); your all test case will passed

Hey Aastha,
As you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.

Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.