wood burning stoves*
The moose likes Meaningless Drivel and the fly likes puzzle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Other » Meaningless Drivel
Bookmark "puzzle" Watch "puzzle" New topic
Author

puzzle

sona gold
Ranch Hand

Joined: Feb 14, 2001
Posts: 234
can anyone solve this
use the no
1 5 6 7

and use the operators

+ - * /

in between them to get teh result
21
the no. cannot be used more than once
the operators can be repeated
any intellects there
the no. are correct .. use ur gray cells
yes the no.. are
1 5 6 7


sona<br />SCJP
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4347
    
    2

im gonna need a second cup of coffee to attempt this brb
i can get 22 or 23...still trying to get 21
i have to give up....the smoke pouring out of my ears is setting off the smoke detector
[ April 20, 2002: Message edited by: Randall Twede ]
[ April 20, 2002: Message edited by: Randall Twede ]

SCJP
Visit my download page
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Do we get to control the order of operations using parentheses?


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
sona gold
Ranch Hand

Joined: Feb 14, 2001
Posts: 234
well randanll u have to use ur brains a bit harder.. its a simple mathematical equation..
well if u guys give up i can give u the answer
John Lee
Ranch Hand

Joined: Aug 05, 2001
Posts: 2545
Hi Sona:
6 / ( 1 - 5 / 7 ) = 21 !
sona gold
Ranch Hand

Joined: Feb 14, 2001
Posts: 234
great don ... thats the right answer
shai koren
Ranch Hand

Joined: Nov 04, 2001
Posts: 48
a fairly similar one with
1 4 5 6 --> get 24


Shai koren<br />SCJP2 <br />SCEA (well yea only part 1 so far)
Mapraputa Is
Leverager of our synergies
Sheriff

Joined: Aug 26, 2000
Posts: 10065

4 / (1 - 5 / 6)

[ April 27, 2002: Message edited by: Mapraputa Is ]

Uncontrolled vocabularies
"I try my best to make *all* my posts nice, even when I feel upset" -- Philippe Maquet
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
2 + 2 = 5
*Consult your nearest copy of 1984 for the answer.
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
I think I've got it. I had the parameter list all wrong! I'm missing an argument of type NoamChomskyQuote. Let's see here...
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
5*6-1-7=24
This is well kown as "Computing 24", is a very popular game for kids in china (at least when i was in element school).

Bye the way, does anyone have any idea about book for J2ee and SCJD?
jrwang@psu.edu
SCJP/MCSE/CP+Internet
sim sim
Ranch Hand

Joined: Jun 05, 2002
Posts: 55
Originally posted by shai koren:
a fairly similar one with
1 4 5 6 --> get 24

6/((5/4)-1) = 24
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: puzzle