Write a program that given the digits of two numbers A and B prints out the digits of the sum. The first input is N, the number of digits in A as well as B. After this, the digits of A and B will be given one by one from least significant to the most significant. Your program should print the ith digit of the sum before reading the (i+1)th digit of A and B. You should print N+1 digits for the sum, where the most significant digit can be 0. The length N of the numbers can be large, so in general it won’t be possible to store A or B in the “int” or “long long” data type. Your program should mimic the manual addition process you learned in primary school, i.e. add digits consecutively together with the carry if any, with initially there being no carry. Note that if a computer has to do arithmetic on numbers with hundreds of digits, it will be done in the manner of your program.
Write a program that given the digits of two numbers A and B prints out the digits of the sum. The first input is N, the number of digits in A a…