Chapter 8's grand finale! Type any number and the cat figures out two things about it: whether it's even or odd (using mod and equals), and whether it's between 0 and 100 (using and, greater than, and less than) — four Operators blocks working together.
👀 What You'll Make
🧩 Grab These Blocks
1Events
2Sensing
3Control
4Operators
5Looks
🔨 Build It Like This
1
whenclicked
2
ask Pick a number!
and wait
3
if(answer mod 2) = 0then
5
say Even number!
for 1 seconds
else
5
say Odd number!
for 1 seconds
3
ifanswer > 0 and answer < 100then
5
say Between 0 and 100!
for 1 seconds
▶️ Click the green flag above the stage to try it!