This commit is contained in:
alstergym
2026-09-08 10:15:49 +02:00
commit c5c2198af1
2 changed files with 41 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
input = int(input())
def Fakultät(input):
if input == 0:
return 1
else:
return input*Fakultät(input -1)
print("Fakultät:" + str(Fakultät(input)))
def Fib(input):
if input == 0:
return 0
elif input == 1:
return 1
else:
return Fib(input-1) + Fib(input-2)
print("Fibonaci:" + str(Fib(input)))