Write a program to accept temperature in Fahrenheit and convert it into degree Celsius
F = (C*9/5)+32
/* Write a program to accept temperature in Fahrenheit and convert it into degrees Celsius hint: F=(C*9/5)+32 */ #include<stdio.h> #include<conio.h> int main() { float f,c; printf("Enter value in fahrenheit:\n"); scanf("%f",&f); c = (f-32)*5/9; printf("Value in celcius is %.10f",c); getch(); return 0; }
Output
For an input 97 Fahrenheit, the output is 36.11