100 20 10 7 8 9 1 5 6 3 2 4
1 3 2 4 8 9 100 5 6 20 10 71 3 2
1 2 38 9 100 5 6 20 10 7
5 6 7 8 9 20 10 1005 6
5 68 9 20 10 100
8 9 20 10 1008 9 20 10
8 9 10 208 9
8 9Sorted array:
1 2 3 4 5 6 7 8 9 10 20 100
PS F:\BC\2024\9\28> ./Main7
100 20 10 7 8 9 1 5
1 5 10 7 8 9 100 2010 7 8 9 100 20
10 7 8 9 20 10010 7 8 9
7 8 9 107 8
7 8Sorted array:
1 5 7 8 9 10 20 100
#include<iostream> using namespace std; void printArray(int arr[], int low, int high) { for (int i = low; i <= high; i++) { cout << arr[i] << " "; } cout << endl;