python

QLxie2023 发表于 5个月前 · 关联问题 计算翻一番的年份

a=float(input()) n=1 while n>0:

b=100*(1+a)**n if b>=200: print(n) break n += 1