License Plate numbersI once found myself reading license plate numbers and trying to make equations out of them. A really fun way to pass your time traveling. However, I tried making a program to do the same, and found it really challenging. You are given a 4-digit number. For example, 1234. Now,
you've got to make an equation out of it, by placing arithmetic operators
and an equal-to sign in between the digits. Now, the output should be such that the simpler equations (like those involving + and -) come first, before complex equations involving *, /, raised-to, etc. Take another example: 7777. The output should be in this
order (ignoring unary negation):- Try supporting as many of the following operators as
possible:-
|
|