#include #include int main(int argc, char *argv[]) {int arreglo [5]; int i, j, temp, numero, promedio; int TAM=5; for (i=0; i=1 && temp<=30) { arreglo[i] = temp; } else { printf("El numero debe estar entre 1 y 30\n"); i--; } } } numero = arreglo[0]; for (i=0; iarreglo[j+1]) { temp = arreglo[j]; arreglo[j] = arreglo [j+1]; arreglo[j+1] = temp; } } printf("%d ", temp); } printf("\n"); system("PAUSE"); return 0; }