# C語言題庫-079 有1、2、3 、4個數字,能組成多少個互不相同且 無重複數字的三位數?都是多少? 【參考答案】 ``` #inc lude “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(); } ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up