Initial commit
This commit is contained in:
commit
a1ddfdb7c0
14 changed files with 599 additions and 0 deletions
14
exercise_2/2025SS-TheoInf-HAB02-Quelltexte.txt
Normal file
14
exercise_2/2025SS-TheoInf-HAB02-Quelltexte.txt
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
def f6(x):
|
||||
y = 0
|
||||
while (x > 0):
|
||||
x = (((x - y) - y) - 1)
|
||||
y = (y + 1)
|
||||
return y
|
||||
|
||||
def f7(x,y):
|
||||
z = 1
|
||||
if ((x>0) and (y>0)):
|
||||
z = 0
|
||||
for i in range(0,x):
|
||||
z = (z + f7(x,(y-1)))
|
||||
return z
|
||||
Loading…
Add table
Add a link
Reference in a new issue