语法不正确 - while (3 < x < 10)

Incorrect Syntax - while (3 < x < 10)

有哪些表达方式? 我知道以下语法不正确。

而 (3 < x < 10)

试试这个

while(3 < x && x < 10)

当然,您需要使用 "and" (&&) 运算符:

while (3 < x && x < 10)