How to convert temperature from Fahrenheit to Celsius:

CODE




How to convert temperature from Fahrenheit to Celsius:  
//c=(f-32)*5/9

int main()
{
    float c,f;
    printf("\n Enter temperature in Fahrenheit:");
    scanf("\n %f",&f);
    c=(f-32)*5/9;
    printf("\n Temperature in Celsius:%f",c);
}


Output:
Enter temperature in Fahrenheit :97
 Temperature in Celsius :36.111111

How to convert temperature from Fahrenheit to Celsius: How to convert temperature from Fahrenheit to Celsius: Reviewed by Unknown on December 13, 2018 Rating: 5

No comments:

If you have any doubt or query ,comment below:

Programming copyright © 2018-19. Powered by Blogger.