Answer:
Program :
celsius_input= float(input("Enter the value of celcius"))#It is used for the input from the user.
print((celsius_input * 1.8) + 32) # it prints the value of fahrenheit for the user.
Output:
- If the user gives the input as 23.6, then the output is 74.48.
- If the user inputs is 45, then the output is 113.
Step-by-step explanation:
- The above code is in python language, in which the first line is used to generate the message for the user, take the input from the user and store it into the "celsius_input" variable after converting it into float data type.
- Then the second line will print the value of Fahrenheit by the help of formula "(celsius_input * 9/5) + 32". The 9/5 will become 1.8. hence we used 1.8 in the place of 9/5.