There is a problem in using for to guess the number of small programs, that is, you cannot exit when the answer is correct, and it will loop until the number of times is used up, so it is better to use do while
After correction
There is a problem in using for to guess the number of small programs, that is, you cannot exit when the answer is correct, and it will loop until the number of times is used up, so it is better to use do while
After correction