2.1 Check for odd/even numbers using modulo operation

Scratch solution

View solution

This is just one of many possible solutions:

when green flag clicked
ask [Enter a number:] and wait
set [number v] to (answer)
if <((number) mod (2)) = [0]> then
  say [You entered an even number!]
  say [You entered an odd number!]

Back to programming challenge