#include <iostream>
using namespace std;
int main() {
int a[10],size=10,min,temp;
for (int i = 0; i < 10; i++) {
cin >> a[i];
}
for (int i = 0; i < size - 1; i++) {
min = i;
for (int j = i + 1; j < size; j++) {
if (a[j] < a[min]) {
min = j;
temp = a[i];
a[i] = a[min];
a[min] = temp;
cout << a[i] << " ";
return 0;
#include <iostream>
using namespace std;
int main() {
int a[10],size=10,min,temp;
for (int i = 0; i < 10; i++) {
cin >> a[i];
}
for (int i = 0; i < size - 1; i++) {
min = i;
for (int j = i + 1; j < size; j++) {
if (a[j] < a[min]) {
min = j;
}
temp = a[i];
a[i] = a[min];
a[min] = temp;
}
}
for (int i = 0; i < 10; i++) {
cout << a[i] << " ";
}
return 0;
}