Package FushiExam; public class text_3 { public static void main (String [] args) { / * * print all numbers daffodils * narcissistic number refers to: each one of the cube a three-digit number and is equal to the * / for ( int X = 100; X <1000; X ++ ) { int Bai = X / 100; // find the three-digit one hundred int GE X% = 10; // bit int Shi = (X-100 * Bai) / 10; // ten IF (* Bai Bai Bai + GE * * * GE * GE + Shi Shi Shi * == X) System.out.println (X + "is the number of Narcissus" ); } } }
FushiExam Package;
public class text_3 {
public static void main (String [] args) {
/ *
* print all numbers daffodils
* narcissistic number refers to: each one of the cube a three-digit number and is equal to the
* /
for (int X = 100; X <1000; X ++) {
int Bai = X / 100; // find the three-digit one hundred
int ge = x% 10; // bit
int shi = (x-100 * bai) / 10; // ten
IF (* Bai Bai Bai + GE * * * GE * GE + Shi Shi Shi * == X)
System.out.println (+ X "is a number from Narcissus");
}
}
}