#include
#include
using namespace std;
int main() {
int n,k;
cout<<"n = "; cin>>n;
int a[n];
srand(time(NULL));
for (int i=0; i a[i]=rand()%25; cout<<a[i]<<" "; <br> }
cout<<endl;<br> cout<<"k = "; cin>>k;
for (int i=0; i for (int j=i+1; j if (a[j]>a[i]) swap(a[i],a[j]);
for (int i=0; i cout<<endl;<br> system("pause");
return 0;
}