diff --git a/Intersection of two Integer arrays/intersection.cpp b/Intersection of two Integer arrays/intersection.cpp new file mode 100644 index 0000000..acdd25d --- /dev/null +++ b/Intersection of two Integer arrays/intersection.cpp @@ -0,0 +1,60 @@ +// LANGUAGE: C++ +// AUTHOR: Nathalia-b +// GITHUB: https://github.com/nathalia-b + +#include +using namespace std; + +int main(){ +srand(time(NULL)); +int tam1 = 6, tam2 = 10, cont = 0, i, j; +int array1[tam1], array2[tam2]; +int intersection[tam1]; /*I am using the size of the smallest array because it would be impossible to have more than that as an INTERSECTION.*/ + +for(i = 0; i