For33. An integer \(N(>1)\) is given. The sequence of Fibonacci numbers \(F_K\) (integer type) is defined as follows:
\(F_1 = 1, F_2 = 1, F_K = F_{K-2} + F_{K-1}, \quad K = 3, 4, ...\).
Output the elements \(F_1, F_2, ..., F_N\).

Solution in Python 3:

for N in range(2,23,5):
print("N = ",N)
F1 = 1
F2 = 1
print(1," : ",F1)
print(2," : ",F2)
for k in range(3,N+1):
F3 = F2 + F1
print(k," : ",F3)
F1 = F2
F2 = F3
print()