class HelloWorld {
public static void main
(String[] args
) { int termo1 = 1;
int termo2 = 2;
int soma = 0;
while (termo2 < 100000) {
int novoTermo = termo1 + termo2;
if (novoTermo % 2 == 0) {
soma += novoTermo;
}
termo1 = termo2;
termo2 = novoTermo;
}
}
}
//https://pt.stackoverflow.com/q/202847/101
Y2xhc3MgSGVsbG9Xb3JsZCB7CiAgICBwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmdbXSBhcmdzKSB7CiAgICAgICAgaW50IHRlcm1vMSA9IDE7CiAgICAgICAgaW50IHRlcm1vMiA9IDI7CiAgICAgICAgaW50IHNvbWEgPSAwOwogICAgICAgIHdoaWxlICh0ZXJtbzIgPCAxMDAwMDApIHsKICAgICAgICAgICAgaW50IG5vdm9UZXJtbyA9IHRlcm1vMSArIHRlcm1vMjsKICAgICAgICAgICAgaWYgKG5vdm9UZXJtbyAlIDIgPT0gMCkgewogICAgICAgICAgICAgICAgc29tYSArPSBub3ZvVGVybW87CiAgICAgICAgICAgIH0KICAgICAgICAgICAgdGVybW8xID0gdGVybW8yOwogICAgICAgICAgICB0ZXJtbzIgPSBub3ZvVGVybW87CiAgICAgICAgfQogICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbihzb21hKTsKICAgIH0KfQoKLy9odHRwczovL3B0LnN0YWNrb3ZlcmZsb3cuY29tL3EvMjAyODQ3LzEwMQ==