Converts from Fahrenheit to Celsius. - C Data Type

C examples for Data Type:float

Description

Converts from Fahrenheit to Celsius.

Demo Code

#include<stdio.h>

int main (void)
{
    float c;//from w  ww. j  a v  a2 s . c  o  m
    float f = 27.0;

    c = (f - 32) / 1.8;

    printf("%f degrees Fahrenheit equals %f Celsius", f, c);

    return 0;
}

Result


Related Tutorials