You are viewing a single comment's thread. Return to all comments →
else if(age >=18) { cout<<"You are old.\n"; } \n in the last test case cause the pointer to enter the next line and hence is not accepted
Seems like cookies are disabled on this browser, please enable them to open this website
Day 4: Class vs. Instance
You are viewing a single comment's thread. Return to all comments →
else if(age >=18) { cout<<"You are old.\n";
} \n in the last test case cause the pointer to enter the next line and hence is not accepted