三、读程序(本大题共3小题,每小题5分,共15分)
1.SET TALK OFF
CLEA
INPUT "X=" TO X
S=1
IF X>=0
DO CASE
CASE X<10
S=1
CASE X<30
S=2
OTHERWISE
S=3
ENDC
ELSE
S=4
END IF
? S
SET TALK ON
当X输入为30时,S的输出结果为( )
A.4 B.3
C.2 D.1
2.SET TALK OFF
CLEAR
INPUT "A=" TO A
INPUT "B=" TO B
INPUT "C=" TO C
IF B
D=A A=B B=D ENDIF