
CodePudding user response:
The input sequence is stored as a listThe list is stored as a big list
Traverse the big list
Figure out whether list
arithmetic progressionOutput list and results
CodePudding user response:
Use a while loop, set the exit criteria, accept each line of input in the list