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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
permaculture playing cards
 
subject: A number game
 
Similar Threads
retrieving values of multiple <input> tag with same name at server side
WA #1.....word association
how to prove that Hashtable is not ordered
For Virgins Only
Style Guide question