Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Test {
- public static void main(String args[]) {
- int count = 0;
- for (int i = 1; i <= 100; i++) {
- for (int j = 1; j <= 100; j++) {
- if (i == j) {
- continue;
- }
- if ((i * j) % 6 == 0) {
- System.out.println(i * j + " " + i + " " + j);
- count++;
- }
- }
- }
- System.out.println(count);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment