teil 16 Testing in progress.

This commit is contained in:
2023-05-05 10:03:11 +02:00
parent a2369f3863
commit 3598abe51f
6 changed files with 0 additions and 0 deletions

13
teil16/fib.py Normal file
View File

@@ -0,0 +1,13 @@
# fib.py
import sys
# berechnet rekursiv die Fibonaccizahl n.
def fib(n):
# Rekursionsbedingung
if n in [0,1]:
return 1
else:
# Rekursionsaufruf
return fib(n-1) + fib(n-2)