Skip to main content

Write a program that will convert the given temperature in Fahrenheit in C Celsius using the following formula. C=(F-32)/1.8


#include<stdio.h>
#include<conio.h>
main()
{
    float c,f;
    
    printf("Enter the temperature in Fahrenheit:");
    
    scanf("%f",&f);
    
    c=((f-32)/1.8);
    
    printf("The temperature in celsius is =%f",c);
    
    getch();
}