#include <iostream>
using namespace std ;
int main() {
int A [10]={66,42,35,77,89,97,25,27,38,22};
int z;
cout << "Liczby przed sortowaniem:" << endl;
for (int i=0;i<10;i++)
cout << A[i] << " ";
for (int j=0;j<9;j++)
for (int i=j+1;i<10;i++)
if (A[j]>A[i])
{z=A[j];
A[j]=A[i];
A[i]=z;
}
cout << endl<<"Liczby po sortowaniu rosnacym: " << endl;
for (int i=0;i<10;i++)
cout << A[i] << " ";
}
To embed this project on your website, copy the following code and paste it into your website's HTML: