C Program To Convert Temperature Into Celsius

How to write a C Program to convert given Temperature in Fahrenheit to Celsius, using Function in C Programming Language ?

Solution For C Program :

/*C Program To Convert Temperature Into Celsius*/

# include <stdio.h>
void main()
{
float f;
float Celsius(float f);
printf("\nEnter the Temperature in Fahrenheit : ");
scanf("%f", &f);
printf("\nThe %0.2f Fahrenheit = %0.2f Celsius.", f, Celsius(f));
}
float Celsius(float f)
{
return(5 * (f - 32) / 9);
}

You may also learn these C Program/Code :

C Program To Swap Two Numbers Without Using Third Variable


Learn More :