OKaNaRslaA

TSTskript

Jul 5th, 2018
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. using namespace std;
  2.  
  3. struct Pfand{
  4. int Glasflasche;
  5. int Plastikflasche;
  6. };
  7. Pfand wert;
  8.  
  9. Pfand Eingabe(){
  10. Pfand wert;
  11. cin>>wert.Glasflasche;
  12. cin>>wert.Plastikflasche;
  13. return wert;
  14. }
  15.  
  16. int berechnung(Pfand wert)
  17. {
  18. int Wert1;
  19. Pfand Eingabe();
  20. Wert1 = wert.Glasflasche * wert.Plastikflasche;
  21. cout<<Wert1;
  22. return Wert1;
  23. }
  24.  
  25.  
  26. int main()
  27. {
  28. Pfand Eingabe();
  29. int berechnung(Pfand wert);
  30. cout << "Hello World!" << endl;
  31. return 0;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment