作业帮 > 综合 > 作业

编写函数,实现将整钱换为1元,5元和10元的零钱.输出共有几种换法及具体换法(1元、5元和10元各几张).

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/24 00:43:10
编写函数,实现将整钱换为1元,5元和10元的零钱.输出共有几种换法及具体换法(1元、5元和10元各几张).
#include
using namespace std;
int main()
{
int cnt=0;
int test;
int i,j,k;
couttest;
for(i=0,i