#include
main()
{ char n(20);
cout<< "\t============ALFIKRI============
cout<< "\t===Media Teknologi Informasi==="<
int data[6];
cout<<"\nMasukkan bilangan yang akan ddiurutkan : "<
for (int i=0; i<=5; i++)
{
cout<<"Angka ke "<<<" : "; cin>>data[i];}
int y = i;
cout<< " Data sebelum diurutkan :" <
for ( int j=0; j
cout<<<" , ";
cout<
for ( j = 1; j < i ; j++ )
for ( int k = 0 ; k < i - 1; k++ )
if ( data [j] > data [k])
{ int q=data[j];
data[j]=data[k];
data[k]=q;
}
cout<<" Data setelah diurutkan :"<
for (j=0; j
cout<<<" , ";
cout<
cout<<" fikri-it.blogspot.com\n\n";
return 0;
}
0 komentar:
Posting Komentar