编辑代码

func shuixiaohua(){
    for a in 1...9{
        for b in 0...9{
            for c in 0...9{
                if (a*a*a + b*b*b + c*c*c) == (a * 100 + b * 10 + c){
                    print(a,b,c,separator:"")
                }
            }
        }
    }
}
shuixiaohua()