PROGRAMMING/SOFTWARE > APCSP 101 Computer Science Principles: Write the sumDigits method. This method takes an int and returns the sum of its digits. For example, 124 will return 7. ..


Roswell High School APCSP APCSP 101  Computer Science Principles Write the sumDigits method. This method takes an int and returns the sum of its digits. For example, 124 will return 7.  Method calls to sumDigits will result in the following: sumDigits(124) returns 7 sumDigits(10) returns 1 sumDigits(135) returns 8 ...[Show More]

Preview 1 out of 3 pages
Purchase this document to unlock the blurred part and the rest of the document

Unlock Now

Reviews( 0 )