Write an algorithm to convert temperature from Fahrenheit to Celsius.
Answers
Answered by
63
Explanation:
algorithm to convert temperature from farhenheit to celsius
step1 - start
step1 - read F
step3 - c=(5( F- 32) ) /9
step4 - print c
step5 - stop
Answered by
38
The algorithm for the conversion of temperature from Fahrenheit to Celsius is as follows:
- Read the temperature given in degree Fahrenheit.
- Convert the temperature in Fahrenheit into Celsius using the formula : C=5/9*(F-32)
- Print the Fahrenheit and Celsius value of temperature.
- End
The code for the same is -
# include < stdio . h >
# include < conio . h >
void main ( )
{
float a , b ;
clr scr( ) ;
printf(" Fahrenhite : ");
scanf("%f", & b );
a = ( b - 32 ) * ( 5 / 9 ) ;
printf(" \ n \ t % . 2b Fahrenheit = % . 2b Centigrade " , b , a ) ;
}
Similar questions
English,
5 months ago
Math,
5 months ago
Chemistry,
5 months ago
Computer Science,
10 months ago
Computer Science,
10 months ago
Science,
1 year ago