Howdy,

I've been having problems letting the computer figure out my answer to my math riddle. Im given a multiplication problem to find the answer to the following problem:

7xx

x 4x

_____

xxxx0

In this problem, every number from 0-9 is used only once. I found the answer the hard way, but i know there is a much much more easier way of doing so. Can anyone help me? Here is my code. Thanks

```
public class Riddle
{
public Riddle()
{
int i,
j;
for (i = 701; i < 799 && i > 700; i++)
{
//System.out.println(i);
for(j = 40; j > 39 && j < 50; j++)
{
System.out.println(i + " \n" + "x" + j + "\n_______\n" + i*j + "\n");
}
}
}
//715
//x46=
//32890
}
```