Für Vorlesungen, bitte die Webseite verwenden. https://flavigny.de/lecture
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 line
318B

  1. #include "fcpp.hh"
  2. int konto; // die GLOBALE Variable
  3. void einrichten (int betrag)
  4. {
  5. konto = betrag;
  6. }
  7. int kontostand ()
  8. {
  9. return konto;
  10. }
  11. int abheben (int betrag)
  12. {
  13. konto = konto-betrag;
  14. return konto;
  15. }
  16. int main ()
  17. {
  18. einrichten(100);
  19. print(abheben(25));
  20. print(abheben(25));
  21. print(abheben(25));
  22. }