public class count{ public void start(int x){ while (x > 0){ x++; System.out.println(x); } } public static void main(String args[]){ count foo; foo = new count(); foo.start(1); } } def fm(x): while True: print x x = x + 1 print 'Done' fm(1)