162k views
1 vote
Write some code that uses a loop to read such a sequence of non-negative integers, terminated by a negative number. When the code exits the loop it should print the number of consecutive duplicates encountered. In the above case, that value would be 3.

User Akdeniz
by
4.0k points

1 Answer

3 votes

Answer:

a

Explanation:

User Alderven
by
4.2k points