#include "stdio.h"
int main()
{
float money;
float price, change;//price商品价钱,money整数金额
printf("请输入价钱:");
scanf("%f",&price);
printf("请输入面币金额:");
scanf("%f",&money);
change=money-price;
printf("找零:%.2f元\n",change);
return 0;
}
简单超市找零
最新推荐文章于 2025-05-10 10:00:00 发布