GRAND ASSIGNMENT - 1 First Place
First Place
Given a positive integer, write a program to print the digit in its one's place
.
Input
The input will be a single line containing a positive integer (N).
Output
The output should be a single line containing the digit in the one's place of the given positive integer.
Explanation
For example, if the given N is 25, the digit in the one's place is 5.
.
Input
The input will be a single line containing a positive integer (N).
Output
The output should be a single line containing the digit in the one's place of the given positive integer.
Explanation
For example, if the given N is 25, the digit in the one's place is 5.
Sample Input 1Sample Output 1
25
5
Sample Input 2Sample Output 2
200
0
code:
a=input()
lenth=len(a)
fist=a[lenth-1]
print(fist)
Comments
Post a Comment