• KoboldCoterie@pawb.social
    link
    fedilink
    English
    arrow-up
    31
    ·
    1 year ago

    God, it’s so obvious, you can do it in only two lines of code.

    if (number == 1 || number == 3 || number == 5 || number == 7 || number == 9...) return false;
    else return true;