#include <stdio.h>
#include <stdlib.h>
#include <time.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[]) {
int a[4] = {2,4,6,8};
int count=0,i,j,k;
for(i=0; i<4; i++){
for(j=0; j<4; j++){
for(k=0; k<4; k++){
if(i!=j&&i!=k&&j!=k){
printf("%d%d%d\n", a[i], a[j], a[k]);
count++;
}
}
}
}
printf("共有%d個\n",count);
return 0;
}