fork download
  1. class Ideone
  2. {
  3. public static void main(String[] args)
  4. {
  5. for(int a = 10; a < 100; a++)
  6. for (int b = 1; b < 10; b++)
  7. if (a % b == 0 && a / b == a % 10 * b)
  8. System.out.println(a * 10 + b);
  9. }
  10. }
Success #stdin #stdout 0.1s 320256KB
stdin
Standard input is empty
stdout
324
453
644
726
819
964