Jens,

We can have up to 3 divisions though & they can be placed within & without parenthesis & in various combinations with other operators. While I think you are correct in saying that we could recast all so that decimal math was unneeded, programming all the continuances could be a major undertaking. Just identifying all the division patterns plus their alternatives might be a several day project.

Also to avoid decimal math your solution needs to go one step further. If your final result is a fraction, you need to check if the denominator is a factor in the numerator. If it is, then integer division can be used to verify compliance with 24 & otherwise it can not be a solution since the result is non integer.

[ 17. September 2002, 14:36: Message edited by: Jack Lothian ]
_________________________
Jack