Question

Write a function that returns the remainder when a number is divided by 10, without using %, /, *, or subtraction ?

Login to Submit

Examples

Input: 99
Output: 9

Input: 165
Output: 5

Input: 28
Output: 8