How I test if a number is multiple of 2?
Printable View
How I test if a number is multiple of 2?
Compare if number mod 2 = 0
yourvalue mod 2
if result is 0 then it's even, if it's 1 then it's not even.
edit: yeah what popcorn said ^^ i opened the tab and left for a while.
Thanks. It works.