id/email
password
forgot password | create account
about | help | prefs
ReadingBatcode reading practice

 

 

If StatementsIfStmt4

prev  |  next  |  chance
public static int ifIt(boolean x, int y, int z) {
    if (x && y > z)
        return y;
    else
        return z;
}
Function Call  Return Value
ifIt(true, 3, 1)
ifIt(false, 3, 1)
ifIt(true, 10, 3)
ifIt(false, 11, 3)
ifIt(false, 51, 32)
ifIt(true, 1, 0)

Experiment with this code on Gitpod.io

⬅ Back