This is the question:
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.
This was my answer:
if(age< 18)
{
minor++;
}
if(age>=18 && age<=64)
{
adults++;
}
if(age>=65)
{
seniors++;
}
And Yet I am getting an error, please help???