Increased the number of loops and made them round in base 10.
Changed the wording of the line printing the result of getres to make it clearer.