Python Program to Convert Celsius To Fahrenheit and Celsius To Fahrenheit

Spread the love

In this tutorial, you will learn how to write Python Program to Convert Celsius To Fahrenheit andĀ Celsius To Fahrenheit.

Fahrenheit to Celsius formula:

C =(F – 32) x 5/9

Program:

In this program, we are using simple arithmetic operators to execute this program

F = 42 C= (F - 32) * 5/9 print ("Celsius value", C)

Output:

Celsius value 5.555555555555555
Celsius to Fahrenheit formula:

F =(CĀ  x 9/5 ) +32

Program :

C=5.55555 F =(C*9/5)+32 print ("Fahrenheit value", F)

Output:

Fahrenheit value 41.99999

 

 

admin

admin

Leave a Reply

Your email address will not be published. Required fields are marked *