aspose file tools*
The moose likes Programming Diversions and the fly likes Nine 4s to make it  2000 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "Nine 4s to make it  2000" Watch "Nine 4s to make it  2000" New topic
Author

Nine 4s to make it 2000

Rakesh Joshi
Ranch Hand

Joined: Feb 24, 2006
Posts: 218
4 4 4 4 4 4 4 4 4 = 2000

There are nine 4s. Put any mathematical operator in the equation to make the target number of the equation equal to 2000.
can you make it more than one way


Life is a Game play it.
Rakesh Joshi
Ranch Hand

Joined: Feb 24, 2006
Posts: 218
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

(4 x 4 x 4) / (.4 x .4 x .4) x sqrt(4) + 4 - 4
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18855
    
  40



Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

(4^4-4)*(4+4)-4*4+(4-4)

if ^ is accepted as a mathematical operator.
[ April 01, 2006: Message edited by: Stefan Wagner ]

http://home.arcor.de/hirnstrom/bewerbung
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18855
    
  40

Slight variation of Stefan's answer...



Henry
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Nine 4s to make it 2000