(资料图)
1、Private Sub Command1_Click()Dim s%, s1%, s2%, t%For s = 100 To 1000s2 = 0t = sDo While t > 0s1 = t Mod 10t = t 10s2 = s2 + s1 ^ 3LoopIf s = s2 ThenPrint "水仙花数为:"; sEnd IfNext sEnd Sub。
本文就为大家分享到这里,希望看了会喜欢。
Copyright 2015-2022 华声玩具网 版权所有 备案号:京ICP备2021034106号-36 联系邮箱:55 16 53 8 @qq.com