若一个三位数abc满足 ,则称abc为水仙花数。如三位数153满足 ,则153是水仙花数。以下是找出所有水仙花数的程序,请把程序补充完整。(a为百位数、b为十位数、c为个位数) Dim i As Integer, a As Integer, b As Integer, c As Integer For i=100 To a=i\100 b= c=i-100*a-10*b If Then Print i End If Next i
答案:【1】999【2】(i-a*100)\10或(i Mod 100)\10【3】i=a^3+b^3+c^3