Untitled

 avatar
unknown
plain_text
6 months ago
577 B
2
Indexable
#N = int(input('podaj liczbe N'))
#x=0
#for i in range(1, N+1):
    #x=x+i
    #range(N) - liczby od 0 do N-1
    #range(1, N+1) - liczby od 1 do N
    #range(10, 0 , -1) - liczby od 10 do 1
#print(x)
#suma = 0
#i = 1
#while i<=N:
#    print(i)
#    suma += i
#    i += 1
#print('suma = ', suma)


#A = int(input('podaj liczbe A'))
#N = int(input('podaj liczbe N'))
#suma = 1 
#for i in
#    suma = A*A
    #    i += 1
#print('suma = ', suma)
A=1
B=1
i=1
H = int(input('podaj liczbe H'))
for i in range(1, H):
    C=B
    B=A+B
    A=C
print (B)
Editor is loading...
Leave a Comment