restructure and add ipi texs
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
#include "fcpp.hh"
|
||||
|
||||
int konto; // die GLOBALE Variable
|
||||
|
||||
void einrichten (int betrag)
|
||||
{
|
||||
konto = betrag;
|
||||
}
|
||||
|
||||
int kontostand ()
|
||||
{
|
||||
return konto;
|
||||
}
|
||||
|
||||
int abheben (int betrag)
|
||||
{
|
||||
konto = konto-betrag;
|
||||
return konto;
|
||||
}
|
||||
|
||||
int main ()
|
||||
{
|
||||
einrichten(100);
|
||||
print(abheben(25));
|
||||
print(abheben(25));
|
||||
print(abheben(25));
|
||||
}
|
||||
Reference in New Issue
Block a user