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