This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
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 Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Other » Meaningless Drivel
Bookmark "A number game" Watch "A number game" New topic

A number game

Jim Baker
Ranch Hand

Joined: Mar 10, 2002
Posts: 177
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

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-
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
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: A number game
jQuery in Action, 3rd edition