Java-關於雞兔同籠問題的多個作法

共94只腳,雞和兔共35只,請問有多少隻雞和兔java package adsf; public class dst { public static void main(String[] args) { int x; int y; for(x=0;x<=35;x++) { for(y=0;y<=35;y++) { if(x+y==35&&2*x+4*y==94) { S
相關文章
相關標籤/搜索