• kn0wmad1c@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    16 days ago

    num % 2 isn’t a boolean result in any of these languages, so I feel like it would always output “odd”

    Edit: 0 is false, everything else is true.