Do you have any idea to add parentheses to math operation string automatically and randomly?
For example.
A given operation string:
57 x 40 - 14 + 84 ÷ 19
I need to auto add parentheses randomly in above string.
so it becomes:
(57 x 40) - 14 + (84 ÷ 19) or
(57 x 40) - (14 + 84 ÷ 19) or
57 x (40 - 14) + (84 ÷ 19) or
57 x (40 - 14 + 84 ÷ 19) or
57 x (40 - (14 + 84) ÷ 19)
It really appreciated for the help!!
Mick,