编写一个程序,要求该程序在输入某人的实发工资后(工资用整数,即精

2020-05-12 财经 88阅读
void main()
{
int salary,hundred,fifty,ten,five,two;
printf("请输入工资总额:");
scanf("%d\n",&salary);
hundred=salary/100;salary=salary%100;
fifty=salary/50;salary=salary%50;
ten=salary/10;salary=salary%10;
five=salary/5;salary=salary%5;
two=salary/2;salary=salary%2;
printf("应发钞票:%d张100元、%d张50元、%d张10元、%d张5元、%d张2元、%d张1元。\n",hundred,fifty,ten,five,two,salary);
}
声明:你问我答网所有作品(图文、音视频)均由用户自行上传分享,仅供网友学习交流。若您的权利被侵害,请联系fangmu6661024@163.com