#include #include #include using namespace std; int main(int argc, char *argv[]) { int N=0, Npos=0, Npairs=0, x, y, max=0; //or max_num=INT_MIN; or max_num=-999; do { cout<<"Give N>=2 ?"; cin>>N; } while (N<2); cout<<"Enter next number: "; cin>>x; if (x>0) {Npos++; max=x;} for (int i=2; i<=N; i++) { cout<<"Enter next number: "; cin>>y; if (y>0) { Npos++; if (y>max) max = y; } if (abs(x)-abs(y)==1) { Npairs++; cout<<"Found pair ("<0) cout<<"Count pos is "<