RajitaBhusal
RajitaBhusal RajitaBhusal
  • 08-10-2021
  • Computers and Technology
contestada

algorithm to convert Fahrenheit temperature into celsius temperature​

Respuesta :

Аноним Аноним
  • 08-10-2021

Lets use python

[tex]\\ \tt F=(float(input("Enter\:temperature\:in\:Fahrenheit:")))[/tex]

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

[tex]\tt print("Temperature\:in\:Celsius\:is",C°C)[/tex]

Output:-

[tex]\tt Enter\:temperature\;in\:Fahrenheit:32[/tex]

[tex]\tt Temperature\:in\:Celsius\:is\:0°C[/tex]

Answer Link
Аноним Аноним
  • 08-10-2021

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

Answer Link

Otras preguntas

what are the two black african amaricans who first played teenis?​
Which best describes a temperate deciduous forest? (A) Seasons are well defined, (B) Short growing season, (C) Low rainfall, (D) all of the above.
Why are the two houses of Congress a compromise? How did this address the concerns of both groups?
American factories are making more than the American people can use; American soil is producing more than they can consume. Fate has written our policy for us;
who were the"leather stockings"?
Hey all, I need help on a bible test, please let me know if anyone has time to help me. Also, after we can talk if you want to
i need help w this pls :)
True or False: A food chain is the feeding relationships among all the organisms in an ecosystem.
why did the spanish propose the canal in the 1500s
HELP QUICK WILL GIVE BRAINLIEST