diff --git a/units/2023_18_10/solution.cpp b/units/2023_18_10/solution.cpp new file mode 100644 index 0000000..8efdb63 --- /dev/null +++ b/units/2023_18_10/solution.cpp @@ -0,0 +1,26 @@ +#include + +using namespace std; + +int main() { + int x, y, z; + + cout << "Bitte einen Wert eingeben: "; + cin >> x; + + cout << "Bitte noch einen Wert eingeben: "; + cin >> y; + + cout << "Bitte noch einen Wert eingeben: "; + cin >> z; + + cout << "Die Summe der drei Zahlen betrÃĪgt " << x + y + z << "!" << endl; + + int a; + cout << "Bitte einen Wert eingeben: "; + + cin >> a; + + cout << "Das Produkt der Summe und der eingegebenen Zahl betraegt " << (x + y + z) * a << "!" << endl; + +} \ No newline at end of file