- 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.
4 Respuestas
+ 1
tia ,
your code seems to work fine. is there any reason to do so?
+ 1
Is this your question ❓
+ 1
Use float value to multiply <c> when calculating result.
return ( c * 9.0 / 5 ) + 32
0
celsius = int(input())
def conv(c):
#your code goes here
return (c*9/5)+32
fahrenheit = conv(celsius)
print(fahrenheit)