forked from menault/TD1_DEV51_Qualite_Algo
TD1
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
// Bubblesort Algorithm
|
||||
// M.Menault 2024
|
||||
|
||||
void bubblesort(int* array, int length)
|
||||
{
|
||||
int swapped, i, tmp;
|
||||
@@ -17,5 +14,5 @@ void bubblesort(int* array, int length)
|
||||
swapped++;
|
||||
}
|
||||
}
|
||||
} while(swapped==1);
|
||||
} while(swapped > 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user