Temperature of a city in Fahrenheit degrees is input through the keyboard. Write a program to convert this temperature into Centigrade degrees.


 /*Program to calculate centigrade degrees

  Author:Knowledge desk Date: October 29, 2020*/


#include<stdio.h>

#include<conio.h>


main()

  {

     float tf,tc;

     // tf=temperature of city in fahrenit, tc=temperature of city in centigrade//


     clrscr();

     printf("Enter temperature of city in fahrenit:");

     scanf("%f",&tf);


     tc=(tf-32.0) * 5.0/9.0;

     printf("/ntemperature of city in centigrade=%f",tc);


     getch();

     return(0);

  }

Comments