This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programming Diversions and the fly likes Solve This Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "Solve This" Watch "Solve This" New topic
Author

Solve This

Rakesh Joshi
Ranch Hand

Joined: Feb 24, 2006
Posts: 218
Can you make a target number 37 by using five 5s? You can use any math operator as you want. There are at least two different ways.


Life is a Game play it.
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
((5+5)/5)^5 + 5
((5/5)/.5)^5 + 5
(5*.5 + 5)*5 -.5
5/(5 * .5^5) + 5

(where x^y = Math.pow(x, y))

Various others...


"I'm not back." - Bill Harding, Twister
Stuart Ash
Ranch Hand

Joined: Oct 07, 2005
Posts: 637
Jim, did you solve it yourself? If yes, give us your train of thought, can you?


ASCII silly question, Get a silly ANSI.
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
I solved it myself in the sense that I wrote the program myself. Actually it was written for an earlier problem; I just modified it slightly.

By the way, all these posts saying "solve this" and "now solve this" could really use some better titles. The existing ones are pretty much useless.
Rakesh Joshi
Ranch Hand

Joined: Feb 24, 2006
Posts: 218
Jim, thanks for ur suggestion.
[ March 26, 2006: Message edited by: Rakesh Joshi ]
Ali Hassaan
Ranch Hand

Joined: May 16, 2001
Posts: 103
((5^5/5^5) + (5^5/5^5))^5 + 5
 
wood burning stoves
 
subject: Solve This
 
Similar Threads
replacing class files instead of new build
Problem with cell Editing of three columns
how to invoke jvm fro c++
Dan Chisholm's Topic Exam Q.5
[Undefined] Pauls movable chicken pen