set talk off
clear
use b01
COPY TO B02
USE B02
I=100
DO WHILE I<=999
A=INT(I/100)
B=INT((I-100*A)/10)
C=I-INT(I/10)*10
IF I=A^3+B^3+C^3
?I
append blank
REPL 水仙花数 WITH I
ENDIF
I=I+1
enddo
SET TALK ON
RETURN
我现在去掉那些,这样就可以执行回来了
clear
use b01
COPY TO B02
USE B02
I=100
DO WHILE I<=999
A=INT(I/100)
B=INT((I-100*A)/10)
C=I-INT(I/10)*10
IF I=A^3+B^3+C^3
?I
append blank
REPL 水仙花数 WITH I
ENDIF
I=I+1
enddo
SET TALK ON
RETURN
我现在去掉那些,这样就可以执行回来了