version 1 by Jeremy John Reeder

  • Home page
  • Beginning
  • Previous
  • Next

  • Section: Testing
    We can test if a number divides another evenly like so:
        if (some number) divides (some other number)
        if (some number) is divisible by (some other number)
    We can also test if a number or other value falls within a certain range:
        if N is between (some value) and (some other value)
        if N is not between (some value) and (some other value)
    Note that it does not matter if the smaller of the two values is put first or last.