All pastes #239502 Raw Edit

Something

public cpp v1 · immutable
·published 2006-11-05 10:54 UTC
rendered paste body
#include <cstdlib>#include <iostream>#include <string>using namespace std;int main(){    string Type;    int Degree;    Loop1:    cout << "Type F to convert Farenheit to Celcius." << endl;    cout << "Type C to convert Celcius to Farenheit." << endl;    cout << "Type E to Exit!" << endl << endl;    cin >> Type;    if (Type == "f" || Type == "F") //it's like php :o    {         cout << endl << "Farenheit to Celcius" << endl;         cout << "Degrees: " << endl;         cin >> Degree;         cout << endl << Degree << " Farenheit = " << (Degree-32) * 5 / 9 << " Celcius" << endl << endl;             }    else if (Type == "c" || Type == "C")    {         cout << endl << "Celcius to Farenheit" << endl;         cout << "Degrees: " << endl;         cin >> Degree;         cout << endl << Degree << " Celcius = " << (Degree*9) / 5 + 32 << " Farenheit" << endl << endl;    }    else if (Type == "e" || Type == "E")    {         return 0;    }    goto Loop1;    system("PAUSE");    return EXIT_SUCCESS;}