Kotlinlearncs.online LogoJava
Return to List

Homework: Pos Neg

Imported By: learncs.online Staff
/ Version: 2021.4.0
/ Adapted from CodingBat

Given 2 int values, return true if one is negative and one is positive. Except if the parameter negative is true, then return true only if both are negative.

Related Lessons

Stuck? You may find these lessons helpful: