• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help with some Math please

 
Omar Nasir
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys,

I need some help.

Lets say im trying to code a simple game, where I have 4 random numbers, and the player has to:

1) Add, subtract, multiply or divide all 4 numbers with each other to get the number 21.

2) Number can only be used once.

How would i go about with that algorithm?

Thanks, have a nice day
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This isn't applet-related, just a general Java question. So let's move it over there...
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What have you tried/gotten so far?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic