Convert Fahrenheit to Celsius (Chapter 1 Program 4)
Also visit our YouTube Channel Tech Eos VISIT CHANNEL /* 4. Write a program to enter the temperature in Fahrenheit and convert it to Celsius.[C = ((F-32)*5)/9] */ #include<stdio.h> #include<conio.h> void main() { float fahrenheit , celsius ; clrscr(); printf("\nEnter temperature in fahrenheit : "); scanf("%f" , &fahrenheit); celsius = ( ( fahrenheit - 32 )*5 )/9 ; printf("\n\nAfter conversion Celsius = %f " , celsius); getch(); }