- 2

You are making a Celsius to Fahrenheit converter. Write a function to take the Celsius value as an argument and return the cor

You are making a Celsius to Fahrenheit converter. Write a function to take the Celsius value as an argument and return the corresponding Fahrenheit value.

6th Jun 2021, 3:21 PM
Tia
4 Antworten
+ 1
tia , your code seems to work fine. is there any reason to do so?
6th Jun 2021, 3:34 PM
Lothar
Lothar - avatar
+ 1
Is this your question ❓
6th Jun 2021, 3:34 PM
Atul [Inactive]
+ 1
Use float value to multiply <c> when calculating result. return ( c * 9.0 / 5 ) + 32
6th Jun 2021, 3:34 PM
Ipang
0
celsius = int(input()) def conv(c): #your code goes here return (c*9/5)+32 fahrenheit = conv(celsius) print(fahrenheit)
6th Jun 2021, 3:22 PM
Tia