Computer Science, asked by kanakestardom, 1 year ago

python program to convert celsius to fahrenheit​

Answers

Answered by sejalpurang
8

Answer:

We can done this Programm with the help of "if" statement.

Explanation:

a= float(input('enter temperature in Celsius '))

>>37

b=(Celsius *1.8)+32

print ('%0.If Celsius is equal to %0. If degree Fahrenheit ' % (Celsius, Fahrenheit))

I hope this Programm help you.

Answered by AskewTronics
0

Python program and the output for the above question is listed below:

Output:

If the user input as 5, then the output is 41.

If the user input as 1, then the output is 33.8

Explanation:

Celsius =float(input("enter the value of Celsius: "))#Take the value from the user.

print("The value of Fahrenheit of the",Celsius,"°C is: ",Celsius*(9/5)+32,"°F")#Print the value of Fahrenheit.

Code Explanation :

  • The above code is in python language, in which the first line is used to instruct the user and take the input and store it into the Celsius variable after converting it into the float.
  • Then the value of a Fahrenheit will be printed with the help of print function after calculating with the help of predefined Fahrenheit formula.

Learn More :

  • Python : https://brainly.in/question/14689905
Similar questions