February 2022
Intermediate to advanced
140 pages
2h 28m
English
| Puzzle 13 | Reverse the Polarity of the Neutron Flow |
| | fn display_neutron_flow(polarity: isize) { |
| | println!( |
| | "Neutron Flow is {}", |
| | if polarity < 0 { "reversed"} else { "normal" } |
| | ); |
| | } |
| | |
| | fn main() { |
| | let polarity = 1; |
| | { |
| | let polarity = polarity - 2; |
| | display_neutron_flow(polarity); |
| | } |
| | display_neutron_flow(polarity); |
| | } |
Guess the Output | |
|---|---|
|
|
Try to guess what the output is before moving to the next page. |
The program will display the following output:
| | Neutron Flow is reversed |
| | Neutron ... |
Read now
Unlock full access