#include using namespace std; int swap(int val[], int first, int second ){ int temp = val[first]; val[first] = val[second]; val[second] = temp; } int findsmallestvalue(int val[], int size, int index){ int smallest_value_index = index; for(int i = index + 1; i