Ask Question

A program needs to allow a customer to input integers until the input number is zero. When the input number is zero, the program should write the message "The number of integers you have input is: X" (instead of X there should be the total count of numbers input). What should be added below to replace the question mark

+4
Answers (1)
  1. 5 April, 09:12
    0
    The answer is "Increment count by 1".

    Explanation:

    In the given program a customer inserts numbers that must store in the array variable on the insertion time we define a condition that if the inserting number value is equal to 0. Then the program will terminate with a message that is "The number of integers you have input is: X". In the program first, we insert some value then we insert a number that is 0. So the program will increment the value of count by 1 and add all values and prints its total.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “A program needs to allow a customer to input integers until the input number is zero. When the input number is zero, the program should ...” 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