码迷,mamicode.com
首页 > 编程语言 > 详细

java期末考试 4

时间:2015-03-13 01:53:52      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:java


/**4

 * 有1,2,3,4四個數字,

 * 能夠組成多少個互不相同的三位數

 * 分別是多少

 **/

public class Test{
	public static void main(String[] args){
		for (int i = 1; i < 5; i++)
		{
			for (int j = 1; j < 5; j++)
			{
				for (int k = 1; k < 5; k++)
				{
					System.out.print(i);
					System.out.print(j);
					System.out.print(k);
					System.out.print(" ");
				}
				System.out.println();
			}
			System.out.println();
		}
	}
}


本文出自 “hacker” 博客,请务必保留此出处http://anglecode.blog.51cto.com/5628271/1619885

java期末考试 4

标签:java

原文地址:http://anglecode.blog.51cto.com/5628271/1619885

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