In-browser practice
BUILD THE ALGORITHM
Who is bigger?
Enter two numbers and click the green flag. Three conditions will show the result.
01
lesson
Test your program
Numbers will go into variables a and b.
STAGE
What the sprite does
Нажми зелёный флаг
и сравни два числа
SCRIPT
Block-based Program
when green flag clicked●
ask "Enter the first number" and wait
setavalueответ
ask "Enter the second number" and wait
setbvalueответ
repeat3times
Checks inside a loop are executed over and over again.
ifa>bthen
say "The first number is greater"2 sec.
ifa<bthen
say "The second number is greater"2 sec.
ifa=bthen
say "Numbers are equal"2 sec.
