You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given two integer variables a and b, and a boolean variable flag. The task is to check the status and return accordingly.
Return "True" if either a or b (only one of them) is positive except for the case when flag is True, return True only if both of the variables a and b are negative except for the case when flag is False.