using namespace std; #include #include const int dim = 6; void printarray (int v[]) { for (int i=0;i