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