I have 2 arrays
First array -- array1(3,17,19,11,34,56,22,29);
Second array -- array2(4,6,12,19,59,21);
Now I would like to get 3 types of data
a) values which are present in both array for eg `19`
b) values which are not present in array1 but present in array 2 for eg `4,6,12,59,21`
c) values which are not present in array2 but present in array 1 for eg `3,17,11,34,56,22,29`
Can it be done using a single for() loop?