Department of Computer Science | Institute of Theoretical Computer Science | CADMO

Theory of Combinatorial Algorithms

Prof. Emo Welzl and Prof. Bernd Gärtner

// Programm: summe.C // Berechnet die Summe // zweier Eingabezahlen. #include int main() { int x; // 1. Summand int y; // 2. Summand int sum; // Summe // Eingabe std::cout << "Eingabe x: "; std::cin >> x; std::cout << "Eingabe y: "; std::cin >> y; // Berechnung sum = x + y; // Ausgabe std::cout << "Summe von " << x << " und " << y << " ist " << sum << "." << std::endl; return 0; }