The last digit of a number

Report a typo

Write a program that reads an integer and outputs its last digit.

Try to make use of the modulo %operator, which returns the remainder of a division of two numbers. By which number should you divide to find the last digit of a number?

Sample Input 1:

425

Sample Output 1:

5
Write a program in Python 3
# put your python code here
___

Create a free account to access the full topic