请问这个程序错在哪里?为什么我每次都得不到正确答案?STOR 0 TO X,Y,ZINPUT "输入字符:" TO STR1I=1DO WHILE i127X=X+1I=I+2ELSEIF BETWEEN (CH,"A","Z") OR BETWEEN (CH,"a","z")Y=Y+1ELSEZ=Z+1LOOPENDIFENDDO"汉字为:"+STR(X,3)"英
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/24 19:43:38
请问这个程序错在哪里?为什么我每次都得不到正确答案?STOR 0 TO X,Y,ZINPUT "输入字符:" TO STR1I=1DO WHILE i127X=X+1I=I+2ELSEIF BETWEEN (CH,"A","Z") OR BETWEEN (CH,"a","z")Y=Y+1ELSEZ=Z+1LOOPENDIFENDDO"汉字为:"+STR(X,3)"英
请问这个程序错在哪里?为什么我每次都得不到正确答案?
STOR 0 TO X,Y,Z
INPUT "输入字符:" TO STR1
I=1
DO WHILE i127
X=X+1
I=I+2
ELSE
IF BETWEEN (CH,"A","Z") OR BETWEEN (CH,"a","z")
Y=Y+1
ELSE
Z=Z+1
LOOP
ENDIF
ENDDO
"汉字为:"+STR(X,3)
"英文为:"+STR(Y,3)
"其他为:"+STR(Z,3)
请问这个程序错在哪里?为什么我每次都得不到正确答案?STOR 0 TO X,Y,ZINPUT "输入字符:" TO STR1I=1DO WHILE i127X=X+1I=I+2ELSEIF BETWEEN (CH,"A","Z") OR BETWEEN (CH,"a","z")Y=Y+1ELSEZ=Z+1LOOPENDIFENDDO"汉字为:"+STR(X,3)"英
STORE 0 TO X,Y,Z
*INPUT "请输入一个字符串" TO STR1 &&& 这句要改成以下形式,否则无法运行:
ACCEPT "请输入一个字符串:" TO STR1
I=1
*DO WHILE I 127〕为所填内容
X=X+1
I=I+2
ELSE
IF BETWEEN(CH,"A","Z") OR BETWEEN(CH,"a","z")
Y=Y+1
ELSE
Z=Z+1
ENDIF
*_________
I = I + 1 &&& 此句为所填内容
ENDIF
ENDDO
"汉字的个数为"+STR(X,3)
"英文字母的个数为"+STR(Y,3)
"其他字符的个数为"+STR(Z,3)
RETURN