#include
using namespace std;
int main()
{
const int n = 50;
int x[50];
srand(time(0));
for (int i = 1; i < n; i++)
{
x[i] = rand() % 199 - 99;
cout < < x[i] < < " ";
}
cout < < endl;
for (int i = 1; i < n; i++)
if (x[i] < 0)
cout < < x[i] < < " ";
cout < < endl;
for (int i = 1; i < n; i++)
if (x[i] > 0)
cout < < x[i] < < " ";
return 0;
}
Поделитесь своими знаниями, ответьте на вопрос: