public class flower1 { public static void main(String[] args) { // TODO Auto-generated method stub int i=0; int x,y,z; System.out.print("水仙花数为"); for(i=100;i<=999;i++) { x=i/100; y=i/10%10; z=i%10; if(i==x*x*x+y*y*y+z*z*z) { System.out.print(+i+" ");} } } }