class Loop {
public static void main
(String[] a
) { int cont = 0;
for (int i
= 1; i
>= 0; i
*= 2, cont
++) { System.
out.
println("i:" + i
); } System.
out.
println("cont:"+cont
); }
}
//https://pt.stackoverflow.com/q/326539/101
Y2xhc3MgTG9vcCB7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmdbXSBhKSB7CgkJaW50IGNvbnQgPSAwOwoJCWZvciAoaW50IGkgPSAxOyBpID49IDA7IGkgKj0gMiwgY29udCsrKSB7IFN5c3RlbS5vdXQucHJpbnRsbigiaToiICsgaSk7IH0KCQlTeXN0ZW0ub3V0LnByaW50bG4oImNvbnQ6Iitjb250KTsKCX0KfQoKLy9odHRwczovL3B0LnN0YWNrb3ZlcmZsb3cuY29tL3EvMzI2NTM5LzEwMQ==