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();
}

Comments

Popular posts from this blog

Maximum from three numbers (Nested If ) (Chapter 2 Program 2 )

( Chapter 2 Program 7 )

Modular operator in c ( Chapter 1 Program 9)