Honestly, nothing to put here. It sorts stuff. What more can you want?

#include <stdio.h>

int main() {
    // Write C code here
    int arr[10] = {3,2,4,2,5,6,7,9,1,0};
    int temp;
    for(int i=0; i<10; i++){
        for(int j=i; j<10; j++){
            if (arr[i]>arr[j]){
                temp=arr[j];
                arr[j]=arr[i];
                arr[i]=temp;
            }
        }
    }

    for (int i=0; i<10; i++){
        printf("%d ", arr[i]);
    }

    return 0;
}```

Built With

  • hopes-and-prayers
Share this project:

Updates