1.
#include <iostream>
using namespace std;
int main()
{
unsigned short int n, i;
cin >> n;
for (i=10; i<n; i++)
if (i%10+i/10%10==10) cout << i << " ";
return 0;
}
2.
#include <iostream>
using namespace std;
int main()
{
int n, i, d=1;
cin >> n;
for (i=0; i<=n; i++)
{
cout << i << " ";
if (d%10==0) cout << endl;
d++;
}
d=1;
cout << endl;
for (i=n; i>=0; i--)
{
cout << i << " ";
if (d%10==0) cout << endl;
d++;
}
return 0;
}