2025-09-13 20:47:03 +09:00

7 lines
140 B
Python

while True :
N = float(input())
if N == 0 :
break
res = 1 + N * (1 + N * (1 + N * (1 + N)))
print(f'{res:.2f}')