C program to convert Fahrenheit into Celsius.

                                      To convert Fahrenheit into Celsius you need to apply simple formula    (F-32)/1.8.

C program to convert fahrenheit into celsius


#include<stdio.h>

void main()
{
       float c,f;

       clrscr();
       printf("Enter the value of Fahrenheit::");
       scanf("%f",&f);

       c=(f-32)/1.8;

       printf("Celsius is:: %f",c);

       getch();
}


C program to convert Fahrenheit into Celsius


Download


0 comments:

Post a Comment