1.
#include <iostream>
using namespace std;
int main()
{
int n, a[101];
cin >> n;
for (int i = 1; i <= n; ++i)
{
cin >> a[i];
}
for (int i = 1; i <= n; ++i)
{
if (a[i] % 2 == 1)
{
cout << a[i] << " ";
}
}
return 0;
}
2.
#include <iostream>
using namespace std;
int main()
{
int n, a[101];
cin >> n;
//citire
for (int i = 1; i <= n; ++i)
{
cin >> a[i];
}
//sortare prin selectie
for (int i = 1; i < n; ++i)
{
for (int j = i + 1; j <= n; ++j)
{
if (a[i] > a[j])
{
swap(a[i], a[j]);
}
}
}
for (int i = 1; i <= n; ++i)
{
if (a[i] >= 10 && a[i] <= 99)
{
cout << a[i] << " ";
}
}
return 0;
}