Java Practice-it | Primitive Data and Definite Loops | Self-Check 2.9: lastDigitExpression

preview_player
Показать описание
Topics:
basics, mod, variables

Question:
Suppose you have an int variable called number. What Java expression produces the last digit of the number (the 1s place)? (Our code checker won't match every possible expression; come up with the simplest expression using division and modulus.)

Problem:
Рекомендации по теме