贪心算法找零钱问题c语言,找零钱(贪心算法)
#include#include#define MAX 9int change(int n);int a[MAX]={10000,5000,1000,500,200,100,50,20,10};int num[MAX]={0};int main(){int i;float m;printf("输入要找的钱:");scanf("%f",&m);change((int)100*m);for(i...