نوع فایل

فرمت

سورس سی پلاس پلاس

CPP , EXE

پیش نمایش از پروژه

{
char ans;do
{
; int J[10], x, y, z, v, s, axe;

cout<<“\nSorting a batch of 10 numbers\n\n”;
for(x = 0; x < 10;x++)
{
cout<<“Enter a number “;
cin>>J[x];

}

cout<<“\n\n\nThis are the numbers entered: \n\n”;

for(y = 0; y <= 8; y++)
{
cout<<J[y]<<” “;
}

cout<<J[9]<<“\n”;

cout<<“\n\nSorting the numbers…\n\n”;
for (z = 0; z <= 9; z++)

{
cout<<J[z]<<” “;
}

cout<<“\n”;
for(y = 0;y <= 9; y++)
{
axe = y;

for(z = y + 1; z <= 9; z++)
{
if(J[z] < J[axe])
{
axe = z;

}

selection sort

======