The so-called "narcissus number" refers to a three digit number whose cubic sum of each digit is equal to the number itself Program analysis: use for loop to control 100-999 numbers, and each number is decomposed into 10 bits, Number of daffodils in 100 places: 153 = 13 + 53 + 33

The so-called "narcissus number" refers to a three digit number whose cubic sum of each digit is equal to the number itself Program analysis: use for loop to control 100-999 numbers, and each number is decomposed into 10 bits, Number of daffodils in 100 places: 153 = 13 + 53 + 33

public class sxh {public static void main(String[] agrs) {for (int i = 100; i < 1000; i++) {int a = i / 100;int b = i / 10 % 10;int c = i % 10;if ( Math.pow (a, 3) + Math.pow (b, 3) + Math.pow (c, 3) == i...