Topic: Print all "Narcies", the so-called "number of daffodils" refers to a three-digit number, and its digital cubes and is equal to the number itself. For example: 153 is a "number of daffodils" because 153 = 1 triple square 5 three times. Example: daffodil.java / ** * @Author @Author lykrq todo to change the template for this generated type comment go * to window - preferences - java - code style - code templates * / public class daffodil {
Public static void main (string [] args) {INT i = 0; for (i = 100; i <1000; i ) {INT x = 0, y = 0, z = 0; x = I / 100; / * Decompose hundreds of * / y = I / 10% 10; / * Decompose ten * / z = i% 10; / * Decompose a bit * / if ((x * x * x y * Y * Y z * z * z) == i) {system.out.println (i);}}}}