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]
Category: | PROGRAMMING/SOFTWARE |
Number of pages: | 3 |
Language: | English |
Last updated: | 1 year ago |
Downloads: | 0 |
Views: | 0 |