x = rand(10) - 20 if x > 0 if x < 1 str = "in" else str = "out of" end else str = "out of" end printf "The number is %s the range.\n", str