Write a program to convert temperature from Celsius to Fahrenheit. Equation to convert Celsius to Fahrenheit:
F = (9/5) ∗ C + 32.
Code
# Write a program to convert temperature from Celsius to Fahrenheitprint("Enter temperature in Celsius: ", end="")celsius = float(input())fahrenheit = (celsius * 9/5) + 32print("Temperature in Fahrenheit: ", fahrenheit)
Output
Happy Coding :)
0 Comments
Post a Comment