• fckreddit@lemmy.ml
    link
    fedilink
    arrow-up
    6
    ·
    1 year ago

    Easy workaround, just test the last digit. If it is even, the entire number is even, else odd.

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      11
      ·
      1 year ago

      That’s preposterous! Next time you’ll tell me the language I’m using has a builtin operator that test if a number can be divided by another!