Exercise 5 · Chapter: VariablesRequired+50 XP
Swap Values
You have two variables, a = 5 and b = 10. Swap their values and print both.
Your output should be:
a = 10 b = 5
Hint: You'll need a third variable to hold one value while you swap!
rust
fn main() {
}
Output
Run your code to see the output here.