Convert temperature in Fahrenheit to Celsius
- 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: