write a C program for Conversion of Temperature from Fahrenheit to Centigrade

c program for conversion of temperature from fahrenheit to centigrade
c program for conversion of temperature from fahrenheit to centigrade

Problem Statement:

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

Answer:

/* Conversion of Temperature from Fahrenheit to Centigrade */

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

main()
{

float fr, cent;

clrscr();
print(“\n Enter the temperature in Fahrenheit:”);
scanf(“%f”, &fr);

cent=5.0/9.0*(fr-32);
printf(“\n Temprature in Centigrade=%f”, cent);

printf(“\n\n\n\n\n Press any key to exit…..”);
getch();

}

Please run this program and share the output with us.

Satya Prakash

VOIP Expert: More than 8 years of experience in Asterisk Development and Call Center operation Management. Unique Combination of Skill Set as IT, Analytics and operation management.

Leave a Reply