a,b = 1,1
n = int(input("请输入一个大于等于3的正整数n:"))
for i in range(n-2):c = a + b
a = b
b = c
print(c)
程序运行后,输入:6
运行输出结果是: