[1] 5.555556
Expressions and variables variable reassignment (solution)
Exercise
Output solution
Code solution for Variable Reassignment
- Assign the number 42 to a variable
- Subtract 32 from it and assign that value back to the same variable
- Divide the current value by 9 and assign that value back
- And then multiple the current value by 5 and assign that value back
- Print the temperature in degrees Celsius