// relation between Fahrenheit and Celsius
#include<stdio.h>
#include<conio.h>
void main()
{
float
f2,c2,c,f,c,a,f3,b,d,e,g,h,i,j;
clrscr();
printf("enter
convertion method f to c press (0) and for c to f (1):");
scanf("%f",&c);
a=9;
b=5;
d=32;
j=160;
if
(c==0)
{
printf("enter
the value of fehrenheit:");
scanf("%f",&f);
f3=f*b;
i=f3-j;
c2=i/a;
printf("celsius:%f",c2);
}
else
if (c==1)
{
printf("enter
the value of celsius:");
scanf("%f",&c);
g=a/b;
e=g*c;
f2=e+d;
printf("fehrenheit:%f",f2);
}
else
{
printf("sorry
enter correcgt value....___");
}
getch();
}
