#include <stdio.h>
int main () {
//JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。
int money, count = 0;
printf("请输入要换多少钱?");
scanf("%d", &money);
int one,two,five;
for (one = 0; one < money*10; one++) {
for(two = 0; two < money * 10 / 2; two++ ) {
for(five = 0; five < money * 10 /5; five++) {
if (one + two * 2 + five * 5 == money * 10) {
printf("\n方案%d: %d 个一角,%d 个两角,%d 个五角", ++count, one, two, five);
}
}
}
}
return 0;
}