C++
#include <iostream>
using namespace std;
int main(){
int n = 0;
cout << "Введите n: ";
cin >> n;
if(n>=-1 and n<=1){
cout << 0;
}else{
cout << 1;
}
cout << endl;
return 0;
C++
#include <iostream>
using namespace std;
int main(){
int n = 0;
cout << "Введите n: ";
cin >> n;
if(n>=-1 and n<=1){
cout << 0;
}else{
cout << 1;
}
cout << endl;
return 0;
}