The following program has a problem that needs to be fixed. Read the program and think about the result you expect. Then run the program. Did the result match your expectations?
Edit the program so that when it is run the program outputs the following text.
Result: 1.25
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
Switch to Next Tab CTRL + Tab
Switch to Previous TabCTRL + Shift + Tab
Blocks
Hint
Great job!
Try again
Did you notice the value types in the division block are integers? This is a common mistake programmers make! change those integers to numbers by changing it to number result = 5.0 / 4.0. When integers are used in the expression the computer uses division for integers then it converts the result to a number. That's why the .25 didn't show up in the original program.