Write a Program that accept temperature in Fahrenheit and display into Celsius

#include <stdio.h>
#include <conio.h>

void main()
{
float faren,deg;
clrscr();
printf("Enter Temperature in Fahrenheit");
scanf("%f",&faren);
deg=(faren-32)/1.8;
printf("This is your Temp in degree: ");
printf("%f",deg);
getch();
}

No comments:

Post a Comment

Related Post

Array:
String functions:
General (Loops-for/while)
Write a Program to print reverse of a given number Write a Program to print Product of Digits (eg. 212=2*1*2=4) of a given number Write a C++ Program to Convert Binary into Decimal Number