VF程序设计

set talk off
input"请输入一个数" to m
do while m>0
do case
case mod(m/2)=0
a=m/2
do case
case mod(m/2)=1
a=m*3+1
if a=1
?a
else
loop
exit
endif
endcase
enddo
set talk on
请看看哪里错了?显示do while 嵌套错误

set talk off
input"请输入一个数" to m
do while m>0
do case
case mod(m/2)=0
a=m/2
case mod(m/2)=1
a=m*3+1
endcase
if a=1
?a
else
loop
exit
endif

enddo
set talk on

改了你试试追问

我试试

温馨提示:答案为网友推荐,仅供参考
相似回答