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

  1. Define temperature in Celsius unit.
  2. Apply in the formula.
  3. 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#




Latest Courses