waltermilner

Untitled

Jul 27th, 2018
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1. public class Test {
  2.  
  3.   public static void main(String args[]) {
  4.     int count = 0;
  5.     for (int i = 1; i <= 100; i++) {
  6.       for (int j = 1; j <= 100; j++) {
  7.         if (i == j) {
  8.           continue;
  9.         }
  10.         if ((i * j) % 6 == 0) {
  11.           System.out.println(i * j + " " + i + " " + j);
  12.           count++;
  13.         }
  14.  
  15.       }
  16.     }
  17.     System.out.println(count);
  18.   }
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment