Created the 2023_18_10 solution.cpp

This commit is contained in:
Mathias Wagner 2023-10-18 10:25:45 +02:00
parent 2ed343f93d
commit 9b8b7c8a3d
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -0,0 +1,26 @@
#include <iostream>
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;
}