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 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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.

12th May 2018, 5:30 PM
Tamii Mohammad
Tamii Mohammad - avatar
1 Answer
0
I need the answer plzz😭
12th May 2018, 5:47 PM
Tamii Mohammad
Tamii Mohammad - avatar