• fckreddit@lemmy.ml
    link
    fedilink
    arrow-up
    6
    ·
    7 months 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
      12
      ·
      7 months 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!