#include <iostream>
using namespace std;
/* esercizio sugli operratori lohici &&,||, !
dato di input un valore vericare se:
1) è compreso tra 10 e 20 ma è diverso da 15*/
int x;
int main() {
cin>>x;
if ( (x>=10) && (x<=20) && (x!=15)) {cout <<"accetto il valore"<<endl;}
else { cout <<"non accetto il valore" <<endl;}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwovKiBlc2VyY2l6aW8gc3VnbGkgb3BlcnJhdG9yaSBsb2hpY2kgJiYsfHwsICEKZGF0byBkaSBpbnB1dCB1biB2YWxvcmUgdmVyaWNhcmUgc2U6CjEpIMOoIGNvbXByZXNvIHRyYSAxMCBlIDIwIG1hIMOoIGRpdmVyc28gZGEgMTUqLwppbnQgeDsKaW50IG1haW4oKSB7CiAgY2luPj54OwogIGlmICggKHg+PTEwKSAmJiAoeDw9MjApICYmICh4IT0xNSkpICAge2NvdXQgPDwiYWNjZXR0byBpbCB2YWxvcmUiPDxlbmRsO30KICBlbHNlIHsgY291dCA8PCJub24gYWNjZXR0byBpbCB2YWxvcmUiIDw8ZW5kbDt9CgoKCXJldHVybiAwOwp9