Convert Fahrenheit To Celsius Using C Program
Convert Fahrenheit To Celsius Using C Program
Convert Fahrenheit to
Celsius using C Program
C Server Side Programming Programming
Algorithm
Refer to the algorithm given below to convert
Fahrenheit to Celsius.
Example
Following is the C program to convert
Fahrenheit to Celsius −
Live Demo
#include<stdio.h>
int main(){
float fahrenheit, celsius;
//get the limit of fibonacci series
printf("Enter Fahrenheit:
");
scanf("%f",&fahrenheit);
celsius = (fahrenheit - 32)*5/9;
printf("Celsius: %f
", celsius);
return 0;
}
Output
When the above program is executed, it
produces the following result −
Enter Fahrenheit:
100
Celsius: 37.777779
Bhanu Priya
7 Followers Follow
&
Related Articles
Celsius
Celsius
Fahrenheit to Celsius?
using Python?
Fahrenheit Conversion
conversion in C
conversion in C++
into Fahrenheit
Fahrenheit.
or Celsius scale?
Advertisements
Annual Membership
Enjoy unlimited access on
5500+ Hand Picked Quality
Video Courses
✓ Subscribe Now
FAQ'sAgree
Contact