I need to create a program that will output value "x" by giving it value inputing "Y"
The text of the program sounds just like this:
Define the following two operations which can be applied to a natural number "x":
a) multiplying by 2; b) substracting 3;
By entering a number "Y" determine a sequence of operations to reach the number "x" and output this value.
I would be very gratefull for every ideea you could offer me about how to start...
Every bit of information will help
THanks in advance!