#include <stdio.h>

int main() {
    int count = 10;
    int list[10] = {15, 3, 19, 1, 9, 13, 7, 17, 5, 11};
    int temp = 0;
    
    for (int i = 0;i < 9; i++) {
        for(int j = i+1;j < 10; j++){
            if(list[i] > list[j]){
                temp = list[i];
                list[i] = list[j];
                list[j] = temp;
            }
        }
    }
    for (int i = 0; i < count; i++)
    {
        printf("%d ", list[i]);
    }
 
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: