//Bubble Sort #include #include using namespace std; int main() { int n; short swap_check=0; cout << "Enter the amount of numbers to sort: "; cin >> n; vector numbers; cout << "Enter " << n << " numbers: "; int num; //Input for(int i=0; i> num; numbers.push_back(num); } //Bubble Sorting for(int i=0; inumbers[j+1]) { swap_check=1; swap(numbers[j], numbers[j+1]); } } if(swap_check == 0) { break; } } //Output cout<<"\nSorted Array : "; for(int i=0; i