Untitled
public cpp v1 · immutable#include <iostream>#include <cstring>using namespace std;int main(){ int array1[10] = {0,1,2,3,4,5,6,7,8,9}; int array2[10] = {1,5,10,23,6,90,71,33,45,69}; int a,b; for(a=0;a<=10;a++) { for(b=0;b<=10;b++) { if(array2[b] == array1[a]) { cout << array2[b] << " " << array1[a]<< "\n"; cout << "Duplicate found: " << array2[b] << "\n"; } } } system("PAUSE"); return 0;}