问题 解答题

编写程序,求平方不超过999 999的最大整数.

答案

解:i=1;

while  j*j<="999" 999

j=j+1;

end

j=j-1

考虑循环程序,因为不知道循环的次数,所以利用while循环语句.

选择题
单项选择题