1098-989=109
A=1
B=0
C=9
D=8
程序如下
function Main
for a=0 to 9
for b=0 to 9
for c=0 to 9
for d=0 to 9
i = a*1000+b*100+c*10+d