public class Solution { public static void main(String[] args) { int count = 0; for(int i = 1; i <= 7; i++) { for(int j = i + 1; j <= 7; j++) { System.out.println(i + "\t" + j); count++; } } System.out.println("Total groups number is " + count); } }
相关文章
- 08-26HW4.45