โ Back to User Input
Question 298
Last Digit of a Number
Last Digit of a Number
Read a non-negative whole number and print only its last digit using% 10. For the input482, print: 2
Expected Output:
2
Topics:
User Input
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.