Ch 04 Notes

  1. (Memorize) The rightmost digits of a whole number come from remainder (rem).
  2. (Memorize) Remove the rightmost digits of a whole number with div.
  3. (Memorize) Testing for divisibility: is the remainder zero?
  4. Dividing integers is usually bad. Avoid it by multiplying.
  5. Is this fraction an integer? Do not divide. See above.
  6. Do not use read unless you have to. (If the number does not start out as a String, then read is not necesary.)