C++
Search This Blog
Pages
Home
Monday, January 17, 2011
LabTask1.1
#include<iostream.h>
int main()
{
float fahrenheit, celcius;
cout<<"Please input the temperature in Fahrenheit: ";
cin>>fahrenheit;
celcius=5/9*(fahrenheit-32);
cout<<"\nThe temperature in Celcius is: "<<celcius;
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment