Write a Python program that first asks the user for a target integer t
. Then the program should continually ask the user to input numbers until the sum of the input numbers equals the target number t
.
Example 1:
Input: t = 10, numbers = 2, 3, 5
Output: "Target achieved"
Example 2:
Input: t = 6, numbers = 1, 1, 1, 1, 1, 1
Output: "Target achieved"