/*
* 1000+ C programs + tutorials
*
*
* 21_fahrenheit_to_degree_celsius_converter.c
*
*
* Created on: Oct 20, 2014
* Author: Code2care.org
*/
#include
//#include
void main() {
float degree;
float fahrenheit;
// clrscr();
printf(" Program to convert Temperature Fahrenheit to Degree Celsius: ");
printf("\n\n Enter Temperature in Fahrenheit : ");
scanf("%f", &fahrenheit);
degree = (fahrenheit-32)*(5/9);
printf("\n\n %f Fahrenheit in Degree Celsius = %f \n",fahrenheit,degree);
// getch();
}
-
Output :
Program to convert Temperature Fahrenheit to Degree Celsius:
Enter Temperature in Fahrenheit : 100
100.00 Fahrenheit in Degree Celsius = 37.7778
The best way to learn C programming is to practice more and more of programs .
Code2care C Programming tutorials provide 1000+ programs in C that you can study and become an expert in the language. Programs are divided into categories depending upon type and complexity.
BSc. IT, BSc. Computer Science, BSc. IT, MSc. IT, MSc. Computer Science, MCA, BTech IT & BTech Engineers may find these programs very useful.