Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!

# number puzzle

vidya sagar
Ranch Hand
Posts: 580
2_5_8_3_6=10

substitute any mathematical operators such that leftside equals to ten

fred Joly
Ranch Hand
Posts: 55
are parentheses allowed ?

vidya sagar
Ranch Hand
Posts: 580
are parentheses allowed ?

No

Arjunkumar Shastry
Ranch Hand
Posts: 986
If sequencing is not strict,then
8+3+6-2-5 = 10

vidya sagar
Ranch Hand
Posts: 580
If sequencing is not strict

No Sequence is very Strict

Stefan Wagner
Ranch Hand
Posts: 1923
Is _2_5_8_3_6=10 allowed?

- 2 - 5 + 8 + 3 + 6 = 10

vidya sagar
Ranch Hand
Posts: 580
Is _2_5_8_3_6=10 allowed?

No.Before number 2 no symbols allowed.

fred Joly
Ranch Hand
Posts: 55
Do we use Operator Precedence like in Java or simply
from left to right ?

example : 3+4*2 = 11 in Java
3+4*2 = 14 from left to right

vidya sagar
Ranch Hand
Posts: 580
Left to right only

Ryan McGuire
Ranch Hand
Posts: 1085
4
Originally posted by vidya sagar:
2_5_8_3_6=10

substitute any mathematical operators such that leftside equals to ten

2-5+8/3*6=10 (Left-to-right, no operator precedence.)

vidya sagar
Ranch Hand
Posts: 580
Well Done Ryan McGuire...

That only i expected???

fred Joly
Ranch Hand
Posts: 55
Yes, well done!