Find us On Facebook

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

10 comments:

Anonymous said...

Thankx

Anonymous said...

THank you !! :*

Social Bookmarking Sites said...

Nice Post
http://www.programmingtutorial.info/

Social Bookmarking Sites said...

Programming Tutorial offers you a better of IT academic tutorials to settle on from. you'll notice it all, here at http://www.programmingtutorial.info/. Programming Tutorial coaching is one in all the foremost best and proficient programming tutorial on-line coaching web site within the world.

Smit said...
This comment has been removed by the author.
Smit said...

Answer is coming true of celsius

Unknown said...

I think C=5/9(f-32

Unknown said...

thank you

Arvind said...

What is the output of above prgrm when enter 5 ?

Arvind said...

-15

Post a Comment

Programms

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