• fckreddit@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    11 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
      1
      ·
      11 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!