Question: write c++ Exercise #1: The Digit 7: Write a program that prompts the user to enter n integers, count, and print the number of times
Exercise \#1: The Digit 7: Write a program that prompts the user to enter n integers, count, and print the number of times the digit 7 appears in the n integers. The number of integers (n) is not constant. Use the assert function to check if the user entered 0 for the number of integers. Sample inputs / outputs: 1 Enter the number of integers: 5 Enter integer #1:16273 Enter integer #2:777 Enter integer \#3: 9067 Enter integer \#4: 2345 Enter integer \#5: 70 The digit 7 appeared 6 times in the 5 integers you entered
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
