Write a python program to print the digit at one's place of a number.

 

Write a python program to print the digit at one's place of a number.


number=int(input("Enter the number:"))
a=number%10
print("The digit at one's place of a number "+ str(number)+ " is",a)


No comments:

Post a Comment




Copyright Ⓒ 2022 | Mechpedia | All Right Reserved.