

MCQOPTIONS
Saved Bookmarks
1. |
Consider the following iterative implementation to find the sum of digits of a number:Which of the following lines should be inserted to complete thebelow code? |
A. | sm += n |
B. | sm += n%10 |
C. | sm += n-10 |
D. | sm += n/10 |
Answer» C. sm += n-10 | |