1个回答
2005-12-17
展开全部
clear
set talk off
for i=100 to 999 step 1
n=str(i,3)
if i=((val(substr(n,1,1)))^3+(val(substr(n,2,1)))^3+(val(substr(n,3,1)))^3)
?i
endif
endfor
set talk on
return
set talk off
for i=100 to 999 step 1
n=str(i,3)
if i=((val(substr(n,1,1)))^3+(val(substr(n,2,1)))^3+(val(substr(n,3,1)))^3)
?i
endif
endfor
set talk on
return
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询