Created
August 10, 2016 16:00
-
-
Save nichtemna/e0bf493ccdf80e07608fa00c9ff61da5 to your computer and use it in GitHub Desktop.
Get last digit from a number
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int number = 101; | |
int lastDigit = number % 10; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment