标签:++ demo static for style string nbsp ken bsp
public class Demo2{ public static void main(String[] args) { //35 94 //1 2 //1 4 for (int rabbit = 1;rabbit<=94/4;rabbit++) { int chicken = 35-rabbit; if(chicken*2+rabbit*4==94){ System.out.println(chicken+":"+rabbit); } } } }
标签:++ demo static for style string nbsp ken bsp
原文地址:https://www.cnblogs.com/yangshuyuan1009/p/9831120.html