/* Programmieren fuer Physiker: C++, SS2010 fah2cel.cc Umrechnung von Fahrenheit in Celsius */ #include using namespace std; int main() { float tf; // Grad in Fahrenheit float tc; // Grad in Celsius // Einlesen von tf cout << "Bitte Grad in Fahrenheit eingeben: "; cin >> tf; // Berechnung von tc tc = 5*(tf-32)/9.; // Ausgabe von tf und tc cout << tf << " Grad-Fahrenheit entspricht "; cout << tc << " Grad-Celsius." << endl; }