p = 2for i in range(10): if p <= 0: break print i+1 , p p-=1
Standard input is empty
1 2 2 1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!