码迷,mamicode.com
首页 > 其他好文 > 详细

HW4.45

时间:2016-08-19 20:34:19      阅读:97      评论:0      收藏:0      [点我收藏+]

标签:

技术分享

 

 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 }

 

HW4.45

标签:

原文地址:http://www.cnblogs.com/wood-python/p/5788748.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!