Write an if/else statement that adds 1 to the variable minors if the variable age is less than 18, adds 1 to the variable adults if age is 18 through 64, and adds 1 to the variable seniors if age is 65 or older.
The code I input keeps marking me wrong, so I am not sure what I am entering wrong. FYI this is via myprogramminglab.
if (age < 18)
minors++;
else if ( 18 < age )
adults ++;
else if ( 65 < age)
seniors ++;