Division sometimes results in a number that is not a whole number. Find the result, take the floor of the result, and move each block so the program displays the correct answer after each question.
Coding:
Hotkey Shortcuts
Move BlocksUP or DOWN or TAB
Run Program ALT + SHIFT + R
Stop Program ALT + SHIFT + S
Hide Tray ALT + SHIFT + X
Zoom In ALT + +
Zoom Out ALT + -
Open Help ALT + SHIFT + H
Navigate to Tray ALT + 1
Navigate to Blocks ALT + 2
Enter Navigation Mode SHIFT + ENTER
Blocks
Hint
Great job!
Try again
Using the idea of taking the floor of a number, the decimal portion of a number is lost when we use integer types to store the result of a division problem. For example, 33 / 4 equals 8.25, but stored as an integer, it becomes 8. Once you have figured out the right value move the correct output block below the matching question.
What is the integer result of 1 / 4?
0
What is the integer result of 20 / 10?
2
What is the integer result of 46 / 4?
11
What is the integer result of 4 / 5?
0