#include <iostream>
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;
if (x[i] < 0)
if (x[i] > 0)
return 0;
#include <iostream>
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;
}