1000以内的水仙花数有哪些
            for (int i = 100; i <= 999; i++)
            {
                int a = i / 100 % 10;
                int b = i / 10 % 10;
                int c = i % 10;
                if (a*a*a+b*b*b+c*c*c==i)
                {
                    Console.WriteLine("1000以内的水仙花数有"+i);
                }
            }
            Console.ReadLine();
输出之后 控台台显示 153 370 371 407
