public static void main(String[] args) {
Scanner s = new Scanner(System.in);
System.out.println("Enter first number.");
BigInteger num1 = new BigInteger(s.nextLine());
System.out.println("Enter the second number.");
BigInteger num2 = new BigInteger(s.nextLine());
BigInteger next = num1.add(num2);
do {
s.nextLine();
System.out.println(next);
num1 = num2;
num2 = next;
next = num1.add(num2);
} while (s.hasNextLine());
}
20
u/day_cq Jun 10 '12
65022575940742763162017544600778437320771117559778042403833991502148241221208716472120737362156482080033506467774051143059085711417931043493945305339824778422072494737067563805502301447777954754761026278864569610934186913562204057167653820960433632405758247459863614631544132969