#include using namespace std; int main() { int i, j, temp; int number[10]={36, 81, 45, 17, 69, 3, 23, 92, 70, 54}; while (1) { i = 0; while (i < 10) { cout << number[i] << ", "; i = i + 1; } cout << endl << endl; cout << "Input 2 array indexes = "; cin >> i >> j; if ((i >= 0) && (i < 10) && (j >= 0) && (j < 10)) { temp = number[i]; number[i] = number[j]; number[j] = temp; } else cout << "Out of range" << endl; cout << endl; } return 0; }