Skip to content

Latest commit

 

History

History
17 lines (15 loc) · 555 Bytes

Expressions-and-variables-variable-reassignment-R.md

File metadata and controls

17 lines (15 loc) · 555 Bytes
layout topic title language
exercise
Expressions and Variables
Variable Reassignment
R

Using a single variable convert a temperature of 42 degrees Fahrenheit to Celsius. To do this you'll need to:

  1. Assign the number 42 to a variable.
  2. Subtract 32 from it and assign that value back to the same variable.
  3. Divide the current value by 9 and assign that value back to the same variable.
  4. And then multiple the current value by 5 and assign that value back to the same variable.
  5. Print the temperature in degrees Celsius.