asked 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.

asked
User Akdeniz
by
8.3k points

1 Answer

3 votes

Answer:

a

Explanation:

answered
User Alderven
by
8.4k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.