U E D R , A S I H C RSS

피보나치/이승한

피보나치/이승한

데블스캠프2005/화요일 데블스캠프2005/Python에서 풀어본 문제
~cpp 
def fibo(n1, n2, dest):
    if n1+n2>=dest:
        print n1+n2
    else:
        fibo(n2, n1+n2, dest)

if __name__ == '__main__':
    a = 100
    fibo(1, 2, a)

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2009-05-27 07:09:19
Processing time 0.0079 sec