Arithmetic Operations

  • + 0 comments

    Use a bc scale that's higher than printf's. e.g. Use scale=4 together with printf "%.3f". Only then you'll get hackerrank's expected result.