Here it is the question.
Write the definition of a function isSenior , which receives an integer parameter and returns true if the parameter's value is greater or equal to 65, and false otherwise.
So if the parameter's value is 7 or 64 or 12 the function returns false. But if the parameter's value is 69 or 83 or 65 the function returns true.
This is two of the code of many I tried...


int isSenior(int a)

{

int true;

int false;

a = 69;

if( a >=65)

return true;

else

if( a<65)

return false;

And

int isSenior(int a)

{

int true;

int false;

if( a >=65)

return true;

else

if( a<65)

return false;

Without a=69 this time
I have no clue what seems to be the problem the error message I get is
Suggestion: You are not returning the correct value. Revise your code.
I returned false or true and I don't see what the problem is. Thanks in advance for any help.