0
write a program that reads two positive integers of at most 20 digits and outputs the sum of the number if the sum of numbers
has more than 20 digits output the sum an appropriate message. you should use the following function: 1- readNum(int n[ ], int& length): read a positive number and stores each individual digit in an array n. the variable length stores the number of digits in the integer. #Hint: read the number as a string and store the digits of the number in reverse order. 2-sumNum( int N1[ ], int numOfDigotsN1, int N2[ ], int numOfDigitN2): computed and outputs the sum of two numbers stored in array N1 and N2.
1 Antwort
0
I need the answer plzz😭