1、2、3、4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少?
public class Test1 {
public static int test(){
int d = 0 ;
for(int a = 0;a < 4 ;a++){
for(int b = 0 ; b < 4; b++){
for(int c = 0 ; c < 4; c++){
if( a != b && a != c && b!=c){
d++;
System.out.println(a*100+b*10+c);
}
}
}
}
return d;
}