# Help with some Math please

Omar Nasir

Greenhorn

Posts: 5

posted 6 years ago

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

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

javaNoob me = new javaNoob();<br />String i = "i";<br />i += "love java!";

posted 6 years ago

This isn't applet-related, just a general Java question. So let's move it over there...