#include <iostream>
using namespace std;
int main()
{
int a[11] = {-5, -6, 5, 10, 1, 4, -8, -3, -4, -1, 8};
for (int i = 0; i < 11; i++){
if (a[i] < 0 && a[i+1] < 0)
cout << a[i] << ' ' << a[i+1] << endl;
}
return 0;
#include <iostream>
using namespace std;
int main()
{
int a[11] = {-5, -6, 5, 10, 1, 4, -8, -3, -4, -1, 8};
for (int i = 0; i < 11; i++){
if (a[i] < 0 && a[i+1] < 0)
cout << a[i] << ' ' << a[i+1] << endl;
}
return 0;
}