int errors do { errors = 0 for(int i = 0; i < 49; i++) if(array[i] > array[i + 1] { swap array[i] and array[i + 1] here errors++ } } while errors > 0