I have an input / output machine

I need a rule I can use for any value, like 10 or 100

input 1, output 3
input 2, output 6
input 3, output 12
input 4m output 24

4 answers

in put y=x(10)
Make a table for each recursive rule. Use the integers 0 to 5 for input value a. If possible, find a linear function that generates each table.
Input 2 output 8
The output is eight less than the input