Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using namespace std;
- struct Pfand {
- int Glasflasche;
- int Plastikflasche;
- };
- Pfand eingabe() {
- Pfand wert;
- cin >> wert.Glasflasche;
- cin >> wert.Plastikflasche;
- return wert;
- }
- int berechnung(Pfand wert)
- {
- int ret = wert.Glasflasche * wert.Plastikflasche;
- cout << ret;
- return ret;
- }
- int main()
- {
- Pfand pfand = eingabe();
- int ret = berechnung(pfand);
- cout << "Hello World!" << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement