Debugging can be a pain. Here are some tips for writing code without (or with fewer) bugs:
This approach is nice because you won't have a huge mess with many bugs to sort out and you'll have something that works to share with your teacher and other programmers at every step of the way.
Here is one way to define :
Figure out how to make the following blocks.
A three-input addition operator that accepts only numbers.
A reporter block named "sum of two smallest" that takes three numbers as inputs, and reports the sum of the two smallest (the example shown below would report 9):
A predicate block named "Are any equal?" that compares 3 numbers and returns true if any two are equal to each other (the example shown below would return true):