Red de conocimiento informático - Aprendizaje de programación - Programación NTF

Programación NTF

# incluir & ltstdio.h & gt

void main()

{

int a[15], I, j, temp

printf("Ingrese 15 números:\ n ");

for(I = 0;i<15;i++)

scanf("%d ",&a[ I]) ;

for(I = 0;I<14;I++)//Clasificación de burbujas

for(j = 0;j<14-I;j++)

if( a[j]& gt; a[j+1])

{

temp = a[j];

a[j]= a[ j+1];

a[j+1]= temp;

}

for(I = 0; i<15;i++)

printf("%d",a[I]);

printf("\n");

}