Coding Challenge: Celsius to Fahrenheit Conversion
Learn about how to take inputs from users in the Celsius unit and returns it in Fahrenheit degree.
We'll cover the following
Problem statement
Write a program that asks for a temperature in degrees celsius, then displays it on the Fahrenheit scale.
The conversion between scales is given by the formula:
[°F] = ([°C] x 9/5) + 32
.
Input
Prompt user to enter temperature in Celcius, let’s say user entered 40.
Enter Temp in Celsius : 40
Expected output
Calculate temperature in Fahrenheit and display the result:
Temp in Farhenheit: 104
Coding exercise
Get hands-on with 1400+ tech skills courses.