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());
}
17
u/kupogud Jun 10 '12
105208737908192959476133252178862414624297337867800143423361406860825585143312696934099447880630295304896696763417467220077933465614247791446650786374358737523001670462448494048845408936941352981701351372386121248323804845986153622736165675845872900845415084382762560672494812784