C Programming

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

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

Related Articles

Back to top button

Adblock Detected

Please turn off your Adblocker to view your content.