How to write a C Program to convert given Temperature in Fahrenheit to Celsius, using Function in C Programming Language ?
Solution For C Program :
/*C Program To Convert Temperature Into Celsius*/
# include <stdio.h>
void main()
{
float f;
float Celsius(float f);
printf("\nEnter the Temperature in Fahrenheit : ");
scanf("%f", &f);
printf("\nThe %0.2f Fahrenheit = %0.2f Celsius.", f, Celsius(f));
}
float Celsius(float f)
{
return(5 * (f - 32) / 9);
}
You may also learn these C Program/Code :
C Program To Swap Two Numbers Without Using Third Variable
Learn More :
Conversions
Temperature
Convert
- How To Write a C program that reads your first and last names and then converts them to upper-case and lower-case letters. The results will be printed to standard output console.
- C Program to Convert Text String to Binary
- C Program To Convert Decimal To Binary Using Recursion
- C Program To Convert Temperature In Celsius To Fahrenheit, Using Function
- C Program to Convert Celsius to Fahrenheit temperature
- C Program to convert a string to upper case
- C Program Convert MIDI note to pitch
- C Program to Convert Celcius to Fahrenheit and vice versa
- C Program to Convert a Decimal number to Octal Number
- C Program to Convert Number to Words in C
- C Program to Converts a Number to a String.
- C Program to Convert Celsius Temperature into Fahrenheit Temperature
- C Program to Recursively converts all file-names to lower-case
- C Program to accept string from user & convert all lower case letters into upper case letters & vice versa
- C Program to convert given decimal number into binary number
- C Program To Read The Adjecancy Matrix of Directed Graph And Convert It Into Adjecancy List
Celsius
- C Program To Convert Temperature In Celsius To Fahrenheit, Using Function
- Celsius to Fahrenheit, Fahrenheit to Celsius and Kelvin to Fahrenheit
- C Program to Convert Celsius to Fahrenheit temperature
- C Program to Convert Celcius to Fahrenheit and vice versa
- C Program to Convert Celsius Temperature into Fahrenheit Temperature