none
c program RRS feed

  • 问题

  • Write a C program that calculates the sum of the odd digits and the even digits of an integer. For example, the sum of the odd digits of the number 21554 is 1+5+5 or 11, and the sum of the even digits of the number 21554 is 2+4 or 6. The program should accept any arbitrary integer typed by the user.
    2013年10月29日 9:01

答案