Jump statements

Duplicate

Report a typo

Write a program that reads a series of integers from the user until a duplicate number is entered. The program should then display the first duplicate number encountered.

Sample Input 1:

1 2 3 4 5 6 2

Sample Output 1:

2
Write a program in C++





Create a free account to access the full topic