Hello friends, in this post today, we will learn the concept that how to convert temperature from degree Celsius to Fahrenheit with the help of program.
Convert From C To F:-
Formula to convert temperature from C to F is given below.
F = (1.8*C)+32
Where,
- F = Temperature In Fahrenheit
- C = Temperature In Celsius
Program:-
Output:
Enter temperature in F: 99
Temperature in C= 37.22
Declaration of above program:
1. First input some variable f(Fahrenheit) c(celsius).
2. Convert temperature from F to C using the following operator's formula.
C=((F-32)/1.8);
3. Finally, print the value of C.
Covert From K To F:-
Output:
Enter temperature in K: 312
Temperature in F= 101.93
Declaration of above program:
1. First input some variable f(Fahrenheit) k(kelvin).
2. Convert temperature from F to C using the following operator's formula.
F=((K*1.8)-459.67);
3. Finally, print the value of F.
0 Comments