Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def fibo(a):
- if(a==1):
- return 1
- if (a==2):
- return 2
- return fibo(a-1)*fibo(a-2)
- x = int(input("Nhập một số nguyên <100: "))
- print("Số fibonacci của ",x," là ",fibo(x))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement