Find us On Facebook

Showing posts with label Temperature in Fahrenheit and display it in Celsius.. Show all posts
Showing posts with label Temperature in Fahrenheit and display it in Celsius.. Show all posts

Thursday, April 7, 2011

Write a C++ program that will ask for a temperature in Fahrenheit and display it in Celsius.

#include<conio.h>
#include<iostream.h>
void main()
{
float f,c;
clrscr();
cout<<"Enter Fahrenheit degree to find temperature in celsius: ";
cin>>f;
c = (f-32)/1.8;
cout<<"\n\n\tCELSIUS DEGREE = "<<c;
getch();
}

Programms

C,C++,VB, PL/SQL EBOOK SEARCH ENGINE