Independent Reading

 

Adding Big numbers

 

Write a program that will read 2 integers of 40 digits and print their sum (which may be up to 41 digits). The numbers will be on two separate lines in the file BigNumbers.txt. Name your program BigNumbersXxx.java where the “Xxx” is your user name.

 

Output: each number on a separate line, with the sum on a third line.

 

Example:         0000000000121212121233333333334444444444

                        1111111111111111111111111111111111111116

                        1111111111232323232344444444445555555560

 

Note: be sure to consider carries from one column to the next.