GeeCON Prague 2014*
The moose likes Programming Diversions and the fly likes Numbers and logic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "Numbers and logic" Watch "Numbers and logic" New topic
Author

Numbers and logic

Leslie Chaim
Ranch Hand

Joined: May 22, 2002
Posts: 336
What is a 4 digit number in which the sum of the 3rd and 4th digits equals the sum of the 1st and 2nd digits, the 2nd digit is half the 1st, and the 4th is half the 2nd? (the sum of all digits is 12.)
Who knows there maybe someone who would solve this mathematically :roll: :roll:
Cheers,
Leslie


Normal is in the eye of the beholder
Joel McNary
Bartender

Joined: Aug 20, 2001
Posts: 1817

Who knows there maybe someone who would solve this mathematically
That's me

[ September 23, 2003: Message edited by: Joel McNary ]

Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Dan Lastoria
Ranch Hand

Joined: Jan 30, 2002
Posts: 57
a+b+c+d = 12
c+d = a+b
b = a/2
d = b/2
2a+2b=12
4b+2b=12
6b=12
b=2
2=a/2
a=4
d=2/2
d=1
2+4+1+c=12
c=5
4251
Dan Lastoria
Ranch Hand

Joined: Jan 30, 2002
Posts: 57
Oops...didn't see the reply already. Your's is better than mine anyhow!
 
GeeCON Prague 2014
 
subject: Numbers and logic