i need the code just for the celsius to fahrenheit, not the combination of c>f and f>c. function deg_f = celsius_to_fahrenheit(deg_c) deg_c = input('enter temperature in celsius') deg_f = (deg_c*( )) + 32 end this is what i have for my code, is there aynthing i am doing wrong
i need the code just for the celsius to fahrenheit, not the combination of c>f and f>c.
function deg_f = celsius_to_fahrenheit(deg_c)
deg_c = input('enter temperature in celsius')
deg_f = (deg_c*( )) + 32
end
this is what i have for my code, is there aynthing i am doing wrong
As we know that the celsius and fahrenheit are the two different units to measure the temperature. So one degree celsius value doesn't equal to fahrenheit.
Celsius : Celsius, also called centigrade, scale based on 0° for the freezing point of water and 100° for the boiling point of water. Invented in 1742 by the Swedish astronomer Anders Celsius, it is sometimes called the centigrade scale because of the 100-degree interval between the defined points.
Step by step
Solved in 4 steps