sample(n);
for (int i = 0; i < n; ++i)
cin>>sample[i];
int a=n/2;
cout<<"\nBerilgan massiv elementlari: \n";
for (size_t n = 0; n < sample.size(); n++)
cout << ' ' << sample[n];
cout << '\n';
valarray bar = sample[slice(0, a, 2)];
cout << "\nSlice natijasi (massivdagi toq qiymatlilar soni): \n";
cout << bar.size();
return 0;
}