February 2022
Intermediate to advanced
140 pages
2h 28m
English
| Puzzle 6 | Please Reboot the Universe |
| | fn main() { |
| | if 0.1 + 0.2 == 0.3 { |
| | println!("Arithmetic still works."); |
| | } else { |
| | println!("Please reboot the universe."); |
| | } |
| | } |
Guess the Output | |
|---|---|
|
|
Try to guess what the output is before moving to the next page. |
The program will display the following output:
| | Please reboot the universe. |
You would expect 0.1 + 0.2 to equal 0.3—it does, but not in floating-point ...
Read now
Unlock full access