Ask Question
21 January, 18:14

Given a series of numbers as input, add them up until the input is 10 and print the total. Do not add the final 10. For example, if the following numbers are input 8 3 11 10 The output should be: 22 Hint: When you don't know the number of repetitions, always use while loop.

+1
Answers (1)
  1. 21 January, 22:13
    0
    What programming language?

    Explanation:

    for a generic set of instructions:

    get numbers

    if not already in list of numbers, parse and convert into int/double list

    use a for loop and add them into a variable

    print the variable on screen
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Given a series of numbers as input, add them up until the input is 10 and print the total. Do not add the final 10. For example, if the ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers