! - not && - and || - or // same as c;
#include<iostream> using namespace std; int main(){ int a; cin>>a; if(!((a >= 20 && a <= 30) || (a > 0 && a < 10))){ cout<<"Dentro!"; } else{ cout<<"Fuori!"; } }