#include<stdio.h>
#include<stdlib.h>
void Test()
{
int j = 1;
int k = 1;
int t = 1;
int num = 0;
for (j = 1; j <= 4; j++)
{
for (k = 1; k <= 4; k++)
{
for (t = 1; t <= 4; t++)
{
if ((j != k)
&&(j != t)
&&(k != t))
{
num = j + k * 10 + t * 100;
printf("%d ", num);
}
}
}
}
}
int main()
{
Test();
system("pause");
return 0;
}
C语言:编写程序求解:有1,2,3,4,个数字,将组成互不相同且无重复数字出现的三位数打印出来
最新推荐文章于 2021-09-28 19:27:01 发布