wood burning stoves 2.0*
The moose likes Meaningless Drivel and the fly likes A number game Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Other » Meaningless Drivel
Bookmark "A number game" Watch "A number game" New topic
Author

A number game

Jim Baker
Ranch Hand

Joined: Mar 10, 2002
Posts: 177
123456789
Put the signs "+", "-", "X", "%", in any order
and as many time as you want, between the numbers
above in the given order to make it equal to 100.
Jason Menard
Sheriff

Joined: Nov 09, 2000
Posts: 6450
Here ya go:

1 + 23 * 4 - 5 + 6 + 7 + 8 - 9
Ashish Hareet
Ranch Hand

Joined: Jul 14, 2001
Posts: 375
If I have a choice to not use all those operators , then it's
1+2+3+4+5+6+7+(8*9) == 100
How about this-
987654321
Jim Baker
Ranch Hand

Joined: Mar 10, 2002
Posts: 177
I forgot one rule: you have to use all the
signs at least once.
Jane Somerfield
Ranch Hand

Joined: Jul 20, 2002
Posts: 193
1+234X5%6-7-89=100
 
wood burning stoves
 
subject: A number game