VB programming, if a three digit integer is equal to the cube sum of its digits, then the number is called narcissus number. Enter an integer to judge whether it is narcissus number Private Sub Form_ Load() Dim x%,a%,b%,c%,y% X = InputBox ("please input three digits", "prompt box") If Len(x) = 3 Then a = Val(Mid(x,1,1)) b = Val(Mid(x,2,1)) c = Val(Mid(x,3,1)) y = Val(x) If a ^ 3 + b ^ 3 + c ^ 3 = y Then Print "is Narcissus water" Else Print "not narcissus number" End If Else Print "input error" End If End Sub What's wrong with the above?

VB programming, if a three digit integer is equal to the cube sum of its digits, then the number is called narcissus number. Enter an integer to judge whether it is narcissus number Private Sub Form_ Load() Dim x%,a%,b%,c%,y% X = InputBox ("please input three digits", "prompt box") If Len(x) = 3 Then a = Val(Mid(x,1,1)) b = Val(Mid(x,2,1)) c = Val(Mid(x,3,1)) y = Val(x) If a ^ 3 + b ^ 3 + c ^ 3 = y Then Print "is Narcissus water" Else Print "not narcissus number" End If Else Print "input error" End If End Sub What's wrong with the above?


Private Sub Form_ Click() dim x as StringDim a%, B%, C%, y% x = InputBox ("please input three digits", "prompt box") if len (x) = 3 thena = Val (mid (x, 1,1)) B = Val (mid (x, 2,1)) C = Val (mid (x, 3,1)) y = Val (x) if a ^ 3 + B ^ 3 + C ^ 3



"Narcissus number" refers to a three digit number whose cubic sum of each digit is equal to itself, for example: 153 = 1 ^ 3 + 5 ^ 3 + 3 ^ 3
"Narcissus number" refers to a three digit number whose cubic sum of digits is equal to itself, for example: 153 = 1 ^ 3 + 5 ^ 3 + 3 ^ 3. Now it is required to output all Narcissus numbers in the range of M and n
(100


Function seems to be right, but does not meet the requirements of the problem, did not write out the number of daffodils independent function. You may have been sorted out as required



Output all the "narcissus number", the so-called "narcissus number" refers to a three digit number, the sum of all the number cubes
For example, 153 is the number of daffodils! Because 153 = 1 * 1 * 1 + 5 * 5 * 5 + 3 * 3 * 3


#include
void main()
{
int i,b,s,g;
for (i=100;i