Ad
  • Custom User Avatar

    Thanks! I've updated it. I think I had the same problem with the actual test cases too.
    I've also updated the description to say "to two decimal places".

  • Custom User Avatar

    You've set the value of result at the top but not recalculated it after the loop. Also, your code is missing a curly bracket...