Skip to content

Instantly share code, notes, and snippets.

@MohamedRamadanSaad
Created May 31, 2015 23:16
Show Gist options
  • Save MohamedRamadanSaad/5340b4d0124b12ecf70c to your computer and use it in GitHub Desktop.
Save MohamedRamadanSaad/5340b4d0124b12ecf70c to your computer and use it in GitHub Desktop.
Celsius to Fahrenheit , C++
#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