package main
import ("fmt""math")
func main(){//求100~10000之间的水仙花数for num :=100; num <10000; num++{
number := num
sum:=0var a int
if(num<1000){
a=3}else{
a=4}for number >0{
j := number %10//取出number的每一位
sum=sum+int(math.Pow(float64(j),float64(a)))
number/=10}if(sum==num){
fmt.Printf("%d\t",num)}}}