列出所有的水仙花数

//例如: 153 = 1*1*1 + 3*3*3 + 5*5*5

public class day01_05 {
    public static void main(String[] args) {
        for (int i = 100; i <=1000 ; i++) {
            int i1 = i / 100;
            int i2 = i / 10 % 10;
            int i3 = i % 10;
            if (i==(Math.pow(i1,3)+Math.pow(i2,3)+Math.pow(i3,3))){
                System.out.println(i+"是水仙花数");
            }
        }
    }
}