人民币兑换.c 245 B

12345678910111213141516
  1. #include <stdio.h>
  2. int main() {
  3. int input,ten,five,two,one;
  4. scanf("%d",&input);
  5. ten = input / 10;
  6. five = input % 10 / 5;
  7. two = input % 10 % 5 / 2;
  8. one = input % 10 % 5 % 2 / 1;
  9. printf("%d %d %d %d",ten,five,two,one);
  10. return 0;
  11. }