Console.WriteLine("可能性为:");
for(int a=1;a<=100;a++)
{
for(int b=2;b<=100;b+=2)
{
for(int c=5;c<=100;c+=5)
{
if(a+b+c==100)
{
int a1=a/1;
int b1=b/2;
int c1=c/5;
if(a1+b1+c1==50)
{
Console.WriteLine("1元的有:{0}张,2元的有:{1}张,5元的有{2}:张",a1,b1,c1);
}
}
}
}
}