2024-10-01 11:52:11
#include<
int main()
{int a,b,c,n=0;
printf("20元\t10元\t5元\n");
for(a=1;a<5;a++)
for(b=1;b<(100-20*a)/10;b++)
{c=(100-20*a-10*b)/5;
printf("%2d\t%2d\t%2d\n",a,b,c);
n++;
}
printf("共%d种方案\n",n);
return 0;
}
2024-10-01 17:28:05
2024-10-01 08:53:48
2024-10-01 08:55:30