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 2021-02-07 05:31:28
Processing time 0.0161 sec