Ask Question
4 September, 17:46

Define a function called isSenior that takes a parameter containing an integer value and returns True if the parameter is greater than or equal to 65, and False otherwise.

+1
Answers (1)
  1. 4 September, 18:46
    0
    So if the parameter 's value is 7 or 803 or 141 the function returns true. But if the parameter 's value is - 22 or - 57, or 0, the function returns false.

    My Code:

    bool is Positive (int x) {

    if (x > 0)

    {

    return true;

    }

    else {

    return false;

    }

    }
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Define a function called isSenior that takes a parameter containing an integer value and returns True if the parameter is greater than or ...” in 📙 Mathematics if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers