Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Sudan-function/Python/sudan-function.py
Normal file
12
Task/Sudan-function/Python/sudan-function.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# Aamrun, 11th July 2022
|
||||
|
||||
def F(n,x,y):
|
||||
if n==0:
|
||||
return x + y
|
||||
elif y==0:
|
||||
return x
|
||||
else:
|
||||
return F(n - 1, F(n, x, y - 1), F(n, x, y - 1) + y)
|
||||
|
||||
|
||||
print("F(1,3,3) = ", F(1,3,3))
|
||||
Loading…
Add table
Add a link
Reference in a new issue