程序如下:#include void main(){ int i,j,k,m; printf("The combination is below:\n"); for(j = 0,m = 0; j <= 3; j++){ //redfor(i = 0; i <= 3; i++){//white
for(k = 0; k <= 6; k++){ //black
if((j+i+k) == 8){
printf("RED:%d,WHITE:%d,BLACK:%d\n",j,i,k);
m++;
} }}... |