标签:
1 public class Solution 2 { 3 public static void main(String[] args) 4 { 5 int count = 0; 6 7 for(int i = 1; i <= 7; i++) 8 { 9 for(int j = i + 1; j <= 7; j++) 10 { 11 System.out.println(i + "\t" + j); 12 count++; 13 } 14 } 15 16 System.out.println("Total groups number is " + count); 17 } 18 }
标签:
原文地址:http://www.cnblogs.com/wood-python/p/5788748.html