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;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
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;
}