#include <stdio.h>
int main() {
int count = 10;
int list[10] = {1, 3, 5, 7, 9, 11, 13, 15, 17, 19};
int temp = 0;
for (int i = 0;i < count-1; i++) {
for(int j = 0;j < count-1-i; j++){
if(list[j] > list[j+1]){
temp = list[j];
list[j] = list[j + 1];
list[j + 1] = temp;
}
}
}
for (int i = 0; i < count; i++)
{
printf("%d ", list[i]);
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: