Answer:
22
Explanation:
The question talks about a given program to which you input a set of numbers. Once you input number 10, the program stops receiving inputs and adds the numbers you previously inputed, except for the final 10 which only works as a stopping signal. So, imagine you are working on the program and input the numbers 8, 3, 11 and 10 consecutively. Once you input the 10, the program immediately adds the previous numbers: 8+3+11=22.
So the output should be 22.