Computer Science, asked by karthikeyanjaiganesh, 2 months ago

write a function that take a positive integer and return the ones position digit of the integer​

Answers

Answered by jai696
1

\huge\red{\mid{\fbox{\tt{Using\: Python\: 3}}\mid}}

ones_digit = lambda n: n % 10

print("ones_digit:", ones_digit((n := int(input(("enter num: "))))))

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions