На языке C++ это:
#include <iostream>
using namespace std;
int main()
{
int a = 1;
int b = 2;
int c = 3;
int d = 4;
int e = 5;
int f = 6;
int g = 7;
int h = 8;
int j = 9;
int k = 10;
cout << a << b << c << d << e << f << g << h << j << k << endl;
cout << a << c << e << g << j;
return 0;
}
компилятор https://www.onlinegdb.com/online_c++_compiler
Объяснение:
На языке C++ это:
#include <iostream>
using namespace std;
int main()
{
int a = 1;
int b = 2;
int c = 3;
int d = 4;
int e = 5;
int f = 6;
int g = 7;
int h = 8;
int j = 9;
int k = 10;
cout << a << b << c << d << e << f << g << h << j << k << endl;
cout << a << c << e << g << j;
return 0;
}
компилятор https://www.onlinegdb.com/online_c++_compiler
Объяснение: