Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include iostream
- using namespace std;
- int main(){
- cout << "hello World" << endl;
- return 0;
- int age = 70;
- int ageAtLastExam = 16;
- bool isNotIntoxicated = true;
- if((age >= 1 && (age < 16)){
- cout << "you can't drive" << endl;
- }
- else if(! isNotIntoxicated){
- cout << "you can't drive" << endl; }
- else if (age >= 80 && ((age > 100 || (( age - ageAtLastExam) > 5))){
- cout << "you can't drive" << endl;
- }
- else {
- cout << "you can drive" << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement