Last Digit of 2^230
Easy mathematics interview practice: Last Digit of 2^230.
Compute the ones digit of $2^{230}$ in base 10. Use modular arithmetic and the repeating cycle of $2^n\bmod 10$ (period 4). Return a single digit from 0–9.
Easy mathematics interview practice: Last Digit of 2^230.
Compute the ones digit of $2^{230}$ in base 10. Use modular arithmetic and the repeating cycle of $2^n\bmod 10$ (period 4). Return a single digit from 0–9.