71
Program to convert Celsius into Fahrenheit
Explanation
Fahrenheit and Celsius are the measures of temperature having Unit in degrees as oF
oC respectively. In this tutorial, we have to convert Celsius to Fahrenheit by using the scientific formula in programmes of different languages.
Formula
T(oF) = (T(oC) × (9/5)) + 32
Algorithm
- Define temperature in Celsius unit.
- Apply in the formula.
- Print the temperature in Fahrenheit.
Complexity
O(1)
Solution
Python
Output:
Temperature in Fahrenheit is: 53.6
C
Output:
Temperature in fahrenheit is: 75.1999997
JAVA
Output:
Temperature in Fahrenheit is: 55.4
C#
Output:
Temperature in Fahrenheit is: 55.4
PHP
Output:
Temperature in Fahrenheit is: 62.6
Next Topic#