Created
May 31, 2015 23:16
-
-
Save MohamedRamadanSaad/5340b4d0124b12ecf70c to your computer and use it in GitHub Desktop.
Celsius to Fahrenheit , C++
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
using namespace std; | |
int main() | |
{ | |
int f,e,w; | |
cout<<"Please...Enter The Fahrenheit Degree That You Want to Convert It and press enter\a\n"; | |
cout<<"\t\t\t\t\tF ="; | |
cin>>f; | |
float c; | |
c=(5./9.)*(f-32); | |
cout<<"\n"; | |
cout<<"................................................................................\n"; | |
cout<<"You Have Enterd "<<f; | |
cout<<" Fahrenheit Degrees ,The Computer will Turn it into Celsius Degree...\n"; | |
cout<<"To Continue.. Please Click on any key Then Press enter..."; | |
cin>>e; | |
cout<<"\n\n"; | |
w=e-e; | |
cout<<"................................................................................\n"; | |
cout<<"\t\t \t\tThe Celsius Degree = "<<c; | |
cout<<"^C\n"; | |
cout<<"................................................................................\n"; | |
return 0; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment