python中水仙花数编程代码(vb水仙花数编程)

导读 dim i as integer,m as integerfor i=100 to 999m=(i mod 10)^3 +(i 10 mod 10)^3+(i100)^3if m=i then print inext i 运行结果:153 370 371 407。

dim i as integer,m as integerfor i=100 to 999m=(i mod 10)^3 +(i 10 mod 10)^3+(i100)^3if m=i then print inext i 运行结果:153 370 371 407。

免责声明:本文由用户上传,如有侵权请联系删除!