s=100h=100for i in range(1,10): h1=h/2 s=s+2*h1 h=h1print(s,h)
Standard input is empty
(294, 0)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!