/*
*copyright(c) 2014,烟台大学计算机学院
*All rights reserved
*文件名称:test.cpp
*作者:吴雨凡
*版本:v6.0
*
*问题描述:三色球问题
*输入描述:三种颜色的球
*程序输出:判断相关问题
*/
#include <iostream>
using namespace std;
int main()
{
int red,white,black;
cout<<"颜色搭配有:"<<endl;
for(red=0;red<=3;red++)
for(white=0;white<=3;white++)
{
black=8-red-white;
if(black<=6)
{
cout<<"红球:"<<red<<","<<"白球:"<<white<<","<<"黑球:"<<black<<endl;
}
}
return 0;
}