#include using namespace std; int main(int argc, char const *argv[]) { // length of array cout<<"Enter the length of array"<>n; int arr[n]; // Getting elements of array cout<<"Enter the elements of array"<>arr[i]; } for (int i = 0; i < n; i++) { for(int j = i; j