public class demo
{
public static void main(String[] args)
{
int n = 0;
for(int a = 1; a <= 8; a+=2)
{
for(int b = 1; b <= 8; b+=2)
{
for(int c = 1; c <= 8; c+=2)
{
if(a != b && b != c && a != c && ++n != 0)
System.out.println("NO."+n+":"+a+""+b+""+c);
}
}
}
System.out.println("共有:" + n + "种");
}
} 作者: 黑马杨晨 时间: 2012-9-23 14:41