Home
Submit
Free Hosting
Link To Us
Contacts
Python Fibonacci Number without recursion
Python
Download
(.zip)
#Fibonacci Number without recursion
def fib1(n):
f0 =0
f1 =1
f=0
if n == 0 :
return 0
elif n == 1:
return 1
while n>1:
f = f1 +f0
f0 = f1
f1 = f
n=n-1
return f
Python
Writes a LaTeX file that is a bunch of numbers on the page
Convert binary numbers and octal
Fibonacci Number with recursion
Python
Fibonacci Number without recursion
Gets the max and the mean of the inputed numbers
Numbers sort