Fahrenheit to Celsius – C Program

Fahrenheit to Celsius C Program

Write a C Program to convert Temperature from Fahrenheit to Celsius.

#include <stdio.h>
#include <conio.h>

void main()
{
    float cel, fan;
    
    printf("Enter temperature in Fahrenheit : \n");
    scanf("%f",&fan);
    
    cel = (fan - 32) * 5/9;
    printf("\nCelsius = %f",cel);
    
}

The output of Fahrenheit to Celsius c program :

Enter temperature in Fahrenheit : 
50

Celsius = 10

Leave a Reply

Your email address will not be published. Required fields are marked *