Единицы измерения температуры в градусах Цельсия и Фаренгейта. Давайте рассмотрим принципы преобразования температуры в градусах Цельсия в градусы Фаренгейта и наоборот.

Цельсий = (Фаренгейты — 32) * 5/9

Фаренгейты = (Цельсий * 9/5) + 32

Теперь взгляните на код, как написать программу для преобразования градусов Цельсия в градусы Фаренгейта и наоборот.

enter temperature in celsius = 46 temperature in fahrenheit = 114.8 enter temperature in fahrenheit = 114.8 temprature in celsius is = 46.0
Python Program to check vowel or Consonant
Program to check character is alphabet or not in Python
Python to check whether the year is leap or not
Python to check if number is Positive, Negative or 0
Python Program to solve Quadratic equation
Program to generate Random numbers in Python
Program to swap two numbers in Python
Program to Add two numbers in Python
Python to convert decimal to binary, octal and hexadecimal
Python Program to find large number among three numbers
How to find absolute value of a number in Python
Program to add two binary numbers using bin function

Первоначально опубликовано на https://www.epythonguru.com.