#include <stdio.h> int main() { int array[] = {38,87,45,26,112,345,1,4,6,6,9,26}; int i; int j; int tmp; int len = sizeof(array)/sizeof(array[0]); for(i=0;i<len-1;i++){ for(j=i+1;j<len;j++){ if(array[i] > array[j]){ tmp = array[i]; array[i] = array[j]; array[j] = tmp; } } } for(i=0;i<len;i++){ printf("%d ",array[i]); } printf("\n"); }