编辑代码

#include <stdio.h>
int main ()
{
    int i,j,k,count=0;
    for(i=1;i<5;i++)
    for(j=1;j<5;j++)
    for(k=1;k<5;k++)
    {
        if(i!=j&&i!=k&&j!=k)
        {
            printf("%d%d%d ",i,j,k);
            count++;
            if(count%5==0)
            printf("\n");
        }
    }
    printf("count=%d",count);
}