rendered paste body/* @ Author Erti 'easter' Eelmaa @ File : prob_id_2.java */public class prob_id_2 { int times; int done; static long sum; public prob_id_2() { this.times = 10; this.done = 0; sum = 0; } public static long onloll() { long old1 = 1, old2 = 2; long temp; for(int i = 1; i < 100; i++) { temp = old2; old2 = old1 + old2; old1 = temp; System.out.println(old2); if(old2 % 2 == 0) sum += old2; } return sum; } public void go() { System.out.println("Starting code!"); System.out.println("Answer: "+onloll()); } public static void main(String[] args) { (new prob_id_2()).go(); }}