• wtry@lemm.ee
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    1 year ago

    I can’t believe he needs that much code for this: bool iseven(int number){ if (number % 2 == 0){ return true; } else { return false; } }

    • TopRamenBinLaden@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      I like the example in the post better. It is more clear as to what is going on to an experienced dev like me. What’s this 2 percent nonsense?