Two Really Big Positive Numbers Need Added Together Help Recall Sum Two N Digit Numbers N Q26131742

I have two really big positive numbers I need added together. Can you help me out? Recall that the sum of two n-digit numbers is at most an (n+1)-digit number Input first line contains a single integer 1 n 100,000 denoting the number of digits in each number. The second line contains n space-separated digits (i.e. in the range 0 - 9), denoting the value of the first number. The third line contains the second n-digit number in The the same format. Any digit may be 0. Output Output a single line containing n 1 space-separated digits, denoting the sum of the two numbers. Leading digits may be 0. Sample Input 1 Sample Output 1 0 1In C++

I have two really big positive numbers I need added together. Can you help me out? Recall that the sum of two n-digit numbers is at most an (n+1)-digit number Input first line contains a single integer 1 n 100,000 denoting the number of digits in each number. The second line contains n space-separated digits (i.e. in the range 0 – 9), denoting the value of the first number. The third line contains the second n-digit number in The the same format. Any digit may be 0. Output Output a single line containing n 1 space-separated digits, denoting the sum of the two numbers. Leading digits may be 0. Sample Input 1 Sample Output 1 0 1 Show transcribed image text

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *