diff --git a/3-conditionals/17_voting.cpp b/3-conditionals/17_voting.cpp index dec5351..9ebaa34 100644 --- a/3-conditionals/17_voting.cpp +++ b/3-conditionals/17_voting.cpp @@ -8,7 +8,7 @@ int main() { bool citizen = true; bool registered = false; - if (age >= 18 and citizen == true and registered == true) { + if (age >= 18 && citizen == true && registered == true) { // Use '&&' instead of 'and' std::cout << "You can vote!\n"; } else if (age < 18) {