Created the 2023_18_10 solution.cpp
This commit is contained in:
parent
2ed343f93d
commit
9b8b7c8a3d
26
units/2023_18_10/solution.cpp
Normal file
26
units/2023_18_10/solution.cpp
Normal 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;
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user