Subscribe to:
Post Comments
(
Atom
)
int n = ....; while (n > 0) { int digit = n % 10; // Extract the last digit ...... ..... n = n / 10; // Drop last digit and repeat the loop }
No Comment to " Hints on Extracting Digits "