Review the solution to convert Fahrenheit to Celsius
The following code is one possible solution for the challenge from the previous unit:
C#Copy
int fahrenheit = 94;
decimal celsius = (fahrenheit - 32m) * (5m / 9m);
Console.WriteLine("The temperature is " + celsius + " Celsius.");
This code is “one possible solution” among many possible solutions.
If you were successful, congratulations! Continue to the knowledge check in the next unit.
Important
If you had trouble completing this challenge, maybe you should review the previous units before you continue on.