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

java期末考试 5

时间:2015-03-13 01:54:46      阅读:152      评论:0      收藏:0      [点我收藏+]

标签:java


/**5

 * 輸出9*9乘法表

 **/

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


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

java期末考试 5

标签:java

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

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