标签:ar java for 问题 as 程序 如何 class br
package kewaiwork;
public class lxtkewai {
public static void main(String[] args) {
int i, j;// i:鸡,j:兔
for (i = 0; i < 35; i++) {
j = 35 - i;
if (2 * i + 4 * j == 94)
System.out.println("鸡" + i + "只,兔" + j + "只");
}
}
}
标签:ar java for 问题 as 程序 如何 class br
原文地址:http://www.cnblogs.com/lixintong/p/4120159.html