Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
要求用户输入一个数字。检查输入的数字是否是完美的正方形。我试过了。 在此处输入图像描述
local num, nSqrt Input "Enter a number" to num IF m.num > 0 nSqrt = SQRT(m.num) IF m.nSqrt == INT(m.nSqrt) ? LTRIM(STR(m.num)) + ' is a perfect square' ENDIF endif