// A program that prints the outer product of two vectors. //Task: Generalize the given code to take a user input of 2 vectors and prints the matrix formed by them (the outer product) of these two vectors. #include using namespace std; int main () { // double A= {{5, 10 },{2, 4}}; /* intialization of vector: */ double vec1 [2] = {1,2} ; double vec2 [2] = {3,4} ; unsigned int size_v1 = 2; unsigned int size_v2 = 2; double A[size_v1][size_v2] ; //notice no initialization! for (unsigned int i =0 ; i < size_v1 ; ++i) { for (unsigned int j =0 ; j < size_v2; ++j) { A[i][j] = vec1[i]*vec2[j]; cout << " \t A["<