水仙花数
// 输入100到999之间的三位数字,判断其是否为水仙花数
import java.util.Scanner;
public class ccc {
public static void main(String args[]){
Scanner sc=new Scanner (System. in);
System. out. println( "输入一个100到999之间的数" );
int num=sc. nextInt();
int gw=num%10;
int sw= (num/10)%10;
int bw=num/100;
int num2=gw* gw* gw+sw* sw* sw+bw* bw*bw;
boolean num3=num==num2;
System. out. println(num3);
}
}