#include<stdio.h>//header file
#include<conio.h>//header file
void main() //starting of the main() function
{
float c,f; //declaration of the variables
clrscr();
printf("program that converts temperature from celsius to fahrenheit and vice
versa");
printf("\n\n\n\t\t------------INPUT-------------");
printf("\n\nenter the value of temperature in celsius");//taking input from the
user
scanf("%f",&c);
f=(c/5)*9+32;
printf("\n\n\n\t\t------------OUTPUT------------");
printf("\n\nthe temperature in fahrenheit is=%f",f);//printing output
f=0;
printf("\n\n\n\t\t------------INPUT-------------");
printf("\n\nenter the value of temperature in fahrenheit");//taking input from
the user
scanf("%f",&f);
c=5*((f-32)/9);
printf("\n\n\n\t\t------------OUTPUT------------");
printf("\n\nthe value of the temperature in celsius=%f",c);//printing output
getch();
}