COP+1000+-+Daily+Notes+-+Weeks+13-16



Notes for array sort program:

//create an array of 5 integers

//you need to compare pairs of numbers in the array, //so you need two loops, one inside of each of each other

//the outer loop starts at zero and can either stop at 4 or 5 (you don't need to compare the last number to itself

//the inner loop starts at the outer loop variable value + 1 - THIS IS KEY

//check if array[inner] < array[outer] //if so, swap the values, //put value one in temp //put value two where value one is //put temp where value two is