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