Hi, you haven't provided the programing language, therefore, we will use python but you can extend it to any programing language by reading the code and the explanation.
Answer:
n1 = int(input("First numeber: "))
n2 = int(input("Second numeber: "))
for i in range(5):
r1 = n1%10
r2 = n2%10
print(r1+r2)
n1 = n1//10
n2 = n2//10
Explanation:
- First, we ask for the user input n1 and n2
- We create a for-loop to calculate the sum of each place-value of two numbers
- We obtain the last number in n1 by using the mod operator (%) an the number ten this way we can always take the last value, we make the same for n2
- Then we print the result of adding the last two numbers (place value)
- Finally, we get rid of the last value and overwrite n1 and n2 to continue with the process