This repository has been archived on 2024-08-23. You can view files and clone it, but cannot push or open issues or pull requests.
lessons/C++/lesson3/task6.cpp
2023-07-16 13:23:25 +00:00

23 lines
444 B
C++

#include <iostream>
void bubbleSort(int data[], int lenD) {
int tmp = 0;
for (int i = 0; i < lenD; i++) {
for (int j = (lenD - 1); j >= (i + 1); j--) {
if (data[j] < data[j - 1]) {
tmp = data[j];
data[j] = data[j - 1];
data[j - 1] = tmp;
}
}
}
}
int main() {
int a[3] = {1, 3, 5};
int b[3] = {0, 2, 4};
int c[6];
for (int)
}