logical or in c++ code example
Example 1: or in cpp
a || b = a or b
Example 2: x += c++
int main ()
{
int a, b=3;
a = b;
a+=2; // equivalent to a=a+2
cout << a;
}
Example 3: or c++
#include<iostream>
using namespace std;
int main(){
int a;
cin>>a;
if(a >= 18 || a == 17){
cout<<"Sono entrato nel controllo!";
}
else{
cout<<"Controllo Fallito!";
}
}