Convert temperature in Fahrenheit to Celsius

Sunday, March 13, 2016 Unknown 0 Comments


  • TO CONVERT THE GIVEN TEMPERATURE IN FAHRENHEIT TO CELSIUS 


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

void main()
{
          float f,c;
          clrscr();
          printf("Enter the fahrenheit:");
          scanf("%f",&f);

          c=(f-32)/1.8;

          printf("Celcius is:%f",&c);
          getch();
}

0 comments: