[code="java"]//用面向对象的思想实现查找水仙花数的问题 100-999之间的水仙花数
import static java.lang.System.out;
public class F0112
{
/**
* @param args
*/
public static void main(String[] args)
{
for(int i = 100; i<1000; i++)
{
Flower_num fn = new Flower_num(i);
if(fn.getCube()==i);
{
out.println("水仙花数:"+i);
}
}
}
}
/**
@author macleo
/
class Flower_num
{
private int first_bit; //百位上的数字
private int second_bit; //十位上的数字
private int third_bit; //个位上的数字
/*
/**
/**