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