Isn't the answer to this problem 6.25?

After printing 6.25, it is getting wrong answer even though it is the correct answer.

No of candidates should be an integer :grinning:
so print 7

i hope it helps
kindly give your feedback from link shared below

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

Had to print 7 in this case. My mistake!

yes
now kindly give your feedback