package ireader1;//有1、2、3、4四個數字,能組成多少個互不相同且無重復數字的三位數?都是多少? ??public class Lianxi11 { public static void main(String[] args) { // TODO Auto-generated method stub int a=0,b=0,c=0; for(a=1;a<=4;a++){ for(b=1;b<=4&&a!=b;b++){ for(c=1;c<=4&&a!=c&&b!=c;c++){ System.out.println(a*100+b*10+c); } } } }}
各位慕友們,為什么這種嵌套循環有問題啊。
有夢想的人不睡覺11
2017-06-26 11:25:52