package ForType;

public class JiTu {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int x = 0; //兔
int y = 0; //鸡

for(x = 3;x<15;x++){ //x=3表示兔最少3只起
y = 15-x;
if(x*4+y*2 ==40){
System.out.print(x+" "+y);
}
}

}

}

 posted on 2016-05-22 14:21  景腾枢  阅读(212)  评论(0编辑  收藏  举报