For I,100,999
If instring(string(i),"0")~=0 then
Cycle
Endif
If mid(string(i^2),3,3)="000" then
Disp I," ",i^2
Elseif mid(string(i^2),2,3)="000" then
Disp I," ",i^2
Elseif mid(string(i^2),2,1)="0" and mid(string(i^2),4,2)="00" then
Disp I," ",i^2
Elseif mid(string(i^2),2,2)="00" and mid(string(i^2),5,1)="0" then
Disp I," ",i^2
Endif
Endfor
太简单了;源文件是g3m格式的,不发了,把下面代码储存成txt,用CG系列的模拟器转换一下就可以了
'ProgramMode:RUN
For 317->X To 999
0->B
If MOD(X,10)<>0 And MOD((Intg Xfrac10),10)<>0
Then
X^<2>->A
If MOD(A,10)=0
Then 1->B
IfEnd
If MOD((Intg Afrac10),10)=0
Then B+1->B
IfEnd
If MOD((Intg Afrac100),10)=0
Then B+1->B
IfEnd
If MOD((Intg Afrac1000),10)=0
Then B+1->B
IfEnd
If MOD((Intg Afrac10000),10)=0
Then B+1->B
IfEnd
If B>=3
Then
XDispsADispsIfEnd
IfEnd
Next