Ask Question
15 October, 15:04

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.

+3
Answers (1)
  1. 15 October, 17:42
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers