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)
Temperature in Fahrenheit = ((celsius * 9) / 5) + 32
Input:
celsius= 12
Output:
Temperature in Fahrenheit = 53.6
Python
Output:
C
Output:
JAVA
Output:
C#
Output:
PHP
Output: