package margusmartseppcode.From_30_to_39; public class Problem_33 { public static void main(String[] args) { int d = 1; double ii; for (int i = 1; i < 10; i++) for (int j = 1; j < i; j++) for (double k = 1; k < j; k++) { ii = (i * 10 + j) / (k * 10 + i); if (ii == j / k) d *= ii; } System.out.println(d); } }
No comments:
Post a Comment