Commit cb279e72 by BellCodeEditor

save project

parent 14a976a9
Showing with 16 additions and 0 deletions
b = int(input(''))
a = 1
for i in range(b-1):
if b <= 10:
a=(a+1)*2
print(a)
\ No newline at end of file
def f(n):
if n <= 2:
return 1
elif n > 2:
v = f(n-1) + f(n-2)
return v
r = f(9)
print(r)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment