# Question: write down a formula with one vairable x using basic...

###### Question details

write down a formula with one vairable x, using basic arithmetic operations and the floor function, whose output is the ones digit of x in base 10. Challenge: write down a formula whose output is the leading digit of x. ie., if x = 372.5 then f(x) = 3.