#include using namespace std; int main (int argc, char *argv[]) { int entry[6] = {2,5,3,1,1,3}; cout << "While processing:\n\n"; for (int i = 0; i<6; i++) { entry[entry[i]]=entry[i]; cout << " " << entry[entry[i]] << " = " << entry[i] << endl; } cout << "\nWhen done: "; for (int i = 0; i<6; i++) { cout << entry[i]; } getchar(); return 0; }