Looking for answers? Westonci.ca is your go-to Q&A platform, offering quick, trustworthy responses from a community of experts. Our Q&A platform provides quick and trustworthy answers to your questions from experienced professionals in different areas of expertise. Experience the convenience of finding accurate answers to your questions from knowledgeable experts on our platform.

algorithm to convert Fahrenheit temperature into celsius temperature​

Sagot :

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:

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

We hope our answers were helpful. Return anytime for more information and answers to any other questions you may have. We hope our answers were useful. Return anytime for more information and answers to any other questions you have. Thank you for using Westonci.ca. Come back for more in-depth answers to all your queries.