“`”

【参考答案】

<pre><code>#include ""stdio.h""
#include ""conio.h""
main()
{
int i,j,k;
printf(""\n"");
for(i=1;i<5;i++) /* 以下为三重循环*/
for(j=1;j<5;j++)
for (k=1;k<5;k++)
{
if (i!=k&&i!=j&&j!=k) /* 确保i、j、k三位互不相同*/
pr intf(""%d,%d,%d\n"",i,j,k);
}
getch();
}
</code></pre>

<pre><code> "“`

Was this helpful?

0 / 0

发表回复 0

Your email address will not be published.