#include<stdio.h>
#include<conio.h>
void main()
{
float c,f,ftc,ctf;
clrscr();
printf("\n\t\t Temperature conversion");
printf("\n\t\t********************");
printf("\n\t\t Enter celsius value:");
scanf("%f",&c);
printf("\n\t\t Enter fahrenheit value:");
scanf("%f",&f);
ftc=(f-32)/1.8;
ctf=(c*1.8)+32;
printf("\n\t\t Fahrenheit to celsius value is %2f", ftc);
printf("\n\t\t Celsius to fahrenheit value is %2f", ctf);
getch();
}
#include<conio.h>
void main()
{
float c,f,ftc,ctf;
clrscr();
printf("\n\t\t Temperature conversion");
printf("\n\t\t********************");
printf("\n\t\t Enter celsius value:");
scanf("%f",&c);
printf("\n\t\t Enter fahrenheit value:");
scanf("%f",&f);
ftc=(f-32)/1.8;
ctf=(c*1.8)+32;
printf("\n\t\t Fahrenheit to celsius value is %2f", ftc);
printf("\n\t\t Celsius to fahrenheit value is %2f", ctf);
getch();
}