Problem of hackerrank

sir this the question link

sir i am not getting how to make the float value correct upto 3 decimal places and double value correct upto 9 decimal places

@qudsiya ok wait some time i will check

@qudsiya corrected


is it clear?