U E D R , A S I H C RSS

새싹교실/2017/내무반/박채린/BubbleSort (rev. 1.1)

새싹교실/2017/내무반/박채린/Bubble Sort


void main() {
int temp, i, j;
int arr[] = { 55,07,78,12,42 };

for (i = 4; i >= 1; i--) {
for (j = 1; j <= i; j++)
if (arrj - 1 > arrj) {
temp = arrj - 1;
arrj - 1 = arrj;
arrj = temp;
}
}

for (i = 0; i < 5; i++)
printf("%d\n", arri);

return 0;
}
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:30:06
Processing time 0.0146 sec