! - 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!";
}
}
Code Example |
---|
Cpp :: c++ enum |
Cpp :: how to iterate throguh a string in c++ |
Cpp :: how to store pair in min heap in c++ |
Cpp :: overload stream insert cpp |
Cpp :: why are inline keyword in header c++ |
Cpp :: c++ get ascii value of char |
Cpp :: remove element from array c++ |
Cpp :: string in cpp |
Cpp :: cpp cin |
Cpp :: inbuilt function to convert decimal to binary in c++ |
Cpp :: size of pointer array |
Cpp :: built in factorial function in c++ |
Cpp :: c++ structure |
Cpp :: length of array in cpp |
Cpp :: lambda c++ |
Cpp :: why is using namespace std a bad practice |
Cpp :: how to split string in c++ |
Cpp :: c++ thread incide class |
Cpp :: remove specific element from vector c++ |
Cpp :: abs in cpp |
Cpp :: stl vector |
Cpp :: vector to string cpp |
Cpp :: power function c++ |
Cpp :: notepad++ |
Cpp :: Inner Section Sticky Scroll in elementor |
Cpp :: double to float c++ |
Cpp :: c++ find object in vector by attribute |
Cpp :: c++ move semantics for `this` |
Cpp :: two elements with difference K in c++ |
Cpp :: system cpp |