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