Convert Fahrenheit to Celcious

Write a program to ask temperature in Fahrenheit and disply it in Celcious.
--->

#include<stdio.h>
#include<conio.h>
void main()
{
float c,f,a;
clrscr();
printf("Enter Temperature in Fahrenheit:");
scanf("%f",&f);
a=f-32;
c=a/1.8;
printf("Temperature in Celcius is %5.2f",c);
getch();
}

0 comments: