Question: 6 . Write a program that allows the user to input a succession of integers until the same integer is entered three times in a
Write a program that allows the user to input a succession of integers until the same integer is entered three times in a row. At this point, the program should stop and print Threepeat!
So a sample run of the program might look like:
Number?
Number?
Number?
Number?
Number?
Number?
Number?
Threepeat!
where all the numbers are user input, and everything else is printed by the program
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
