Write a program that converts the input Fahrenheit degree into its Celsius degree equivalent. Use the formula: C=(5/9)F-32. Display the result.


Algorithm:

Input Enter the Fahrenheit (f)

Process Compute the Celsius (C=(5.0/9.0)*F-32.0)

Output Display the Celsius

Solution:

#include

#include

void main ( )

{

flaot c,f;

clrscr ( );

printf (“\n Enter the Fahrenheit:”);

scanf (“%f”, &f);

c= (5.0/9.0)*f-32.0;

printf (“\n the Celsius:%f”,c);

getch ( );

}

Comments

Popular Posts