175k views
0 votes
Algorithm to convert Fahrenheit temperature into celsius temperature​

2 Answers

2 votes

Answer:

Using c++ variable names

double c;

double f;

//set f to some temperature value or pass the value to the function

c=f-32;

c=f*(5/9);

//c is now the temp in celcius

User Ryan Potter
by
5.5k points
1 vote

Lets use python


\\ \tt F=(float(input(


\tt C=(F-32)*5/9


\tt print(

Output:-


\tt Enter\:temperature\;in\:Fahrenheit:32


\tt Temperature\:in\:Celsius\:is\:0°C

User Jeton
by
5.4k points