+ 1
What's wrong in this code?
3 Answers
+ 4
All keywords in C++ are written in lowercase letters, i.e. it should be "if" instead of "If".
+ 4
You have to put a "=" sign so that it can run for age = 18
Correct your line no. 9
if (age>=18){
cout << "You can vote\n";
}
+ 2
Thanks a lot