C Program to Convert Temperature in Fahrenheit (F) into Centigrade (C)

C Program to Convert Temperature in Fahrenheit (F) into Centigrade C) where [f = 1.8 c + 32]

Write a program to convert temperature in Fahrenheit into Centigrade.

C Code

#include<stdio.h>
#include<conio.h>

void main()
{
  int f;
  float c;

  printf("\n enter temperature in fahrenheit :");
  scanf("%d",&f);

  c = (f-32)/1.8;

  printf("Output : %.2f",c);

  getch();

}

Output

Convert Temperature in Fahrenheit (F) into Centigrade (C)