fork download
  1. s=100
  2. h=100
  3. for i in range(1,10):
  4. h1=h/2
  5. s=s+2*h1
  6. h=h1
  7. print(s,h)
Success #stdin #stdout 0.02s 7148KB
stdin
Standard input is empty
stdout
(294, 0)