(C语言)买东西找零钱
2021-04-30 10:29
标签:+= 应该 ring oid fine efi style amp string #include int x, y,sum=0; printf("请输入小明的钱和购买物品的钱:"); scanf("%d %d", &x, &y); x = x - y; sum += x / 100; x = x % 100; sum += x / 50; x = x % 50; sum += x / 20; x = x % 20; sum += x / 10; x = x % 10; sum += x / 5; x = x % 5; sum += x; printf("应该找小明%d张零钱\n", sum); } (C语言)买东西找零钱 标签:+= 应该 ring oid fine efi style amp string 原文地址:https://www.cnblogs.com/zhou-kang/p/13227811.html
#include
#define N 1000
void main()
{