Ask 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 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. Today, 02:54
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers