class class3
{
static void Main()
{
int g = 0;
for (int i = 1; i <= 4; i++)
{
for (int j = 1; j <= 4; j++)
{
for (int h = 1; h <= 4; h++)
{
if (i != j && i != h && h != j)
{
g++;
Console.WriteLine("{0}{1}{2}",i,j,h);
}
}
}
}
Console.WriteLine("共有{0}个这样的数",g);
}
}
c#初学者。本人qq:1030202834