kellylopez8500 kellylopez8500
  • 22-02-2018
  • Computers and Technology
contestada

Write a program named fahrenheittocelsius that accepts a temperature in fahrenheit from a user and converts it to celsius by subtracting 32 from the fahrenheit value and multiplying the result by 5/9. display both values to one decimal place.

Respuesta :

roger48118
roger48118 roger48118
  • 23-02-2018
float   f;
scanf(" %f",&f);
printf("%.1f F %.1f C\n", f,(f-32)*5./9.);

Answer Link

Otras preguntas

If the area is 45 meters square, what is the minimum number of square-tiles with sides of 30 cm by 30 cm that are needed to cover the patio?
How do I find the answer to the second question?
how are rainbow crow and petra different?use details from both stories to support your answer.
what drives global thermohaline (conveyor belt) circulation?
How to understand when to change a noun to a verb
Why does okonkwo refuse to show affection to ikemefuna, even though he feels it?
i just took the quiz and it is B
The sum of 2 numbers is 65. 5 times the smaller number is 25 more than the larger. Find the numbers
Can someone please put this in order
Often students are asked to explain how certain conditions or events are related to the occurrence of other conditions or events. When a student argues that 'on