(Java) Read list of int values, (sentinel -1), print only occurrences of 2 followed by 3
I need to write a program that reads the input from the user of a list of integers and prints only occurrences of 2 followed by 3, using while loop and if statements.
Aucun commentaire:
Enregistrer un commentaire