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);
}