MBrendecke icon

Untitled

MBrendecke | PRO | 07/05/18 02:46:23 PM UTC | 0 ⭐ | 440 👁️ | Never ⏰ | []
C++ |

460 B

|

None

|

0 👍

/

0 👎

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;
}

Comments