Question: Javas type int has a limit on how large an integer it can store. This limit can be circumvented by representing an integer as an

Javas type int has a limit on how large an integer it can store. This limit can be circumvented by representing an integer as an array of digits. Write an interactive program that adds two integers of up to 50 digits each. Also randomly generate each index in both array and print both arrays before the sum, and print the sum array.

Here is one sample run:

first number: 810000320000004000000032004100009

second number: 310000820030004000000079004100003

sum is: 1120001140030008000000111008200012

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!