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.
Sample Input 1
25
Sample Output 1
5
Sample Input 2
200
Sample Output 2
0




code:

a=input()
lenth=len(a)
fist=a[lenth-1]
print(fist)

Comments

Popular posts from this blog

CODING ASSIGNMENT 4

CODING PRACTICE 11 Music Page

CCBP Static Website Coding Assignment 2 Solution | Yoga Page