7 lines
140 B
Python
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}') |