last lab
This commit is contained in:
6
labPython/lab4/Reccur17.py
Executable file
6
labPython/lab4/Reccur17.py
Executable file
@@ -0,0 +1,6 @@
|
||||
def n_chlen(num_end):
|
||||
if num_end <= 1:
|
||||
return 2
|
||||
else:
|
||||
return (num_end+1)/num_end + n_chlen(num_end-1)
|
||||
print(n_chlen(2))
|
||||
Reference in New Issue
Block a user