C Program To Convert Fahrenheit Into Celsius

C Program To Convert Fahrenheit Into Celsius

Example

#include<stdio.h>

int main() {
    float Celsius, Fahrenheit;
    
    printf("n Enter Tempreture In Fahrenheit: ");
    scanf("%f", &Fahrenheit);
    
    Celsius = (Fahrenheit - 32) * 5 / 9;
    printf("n Tempreture In Celsius is:  %0.2f", Celsius);
}

Output:

Enter Tempreture In Celcius: 0
Tempreture In Fahrenheit is: 32.00

Leave a comment