Skip to main content

Celsius to Fahrenheit

· One min read
Kaustubh Kulkarni

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.

Sample input 36

Sample Output 96.8

Program

file.py
celsius = int(input())
def conv(c):
return c*(9/5)+32
fahrenheit = conv(celsius)
print(fahrenheit)