JAVA乘法表怎么写?

1*1=11*2=22*2=41*3=32*3=63*3=91*4=42*4=83*4=124*4=16.................................... 1*1=1
1*2=2 2*2=4
1*3=3 2*3=6 3*3=9
1*4=4 2*4=8 3*4=12 4*4=16
.........................
.....................依此类推
第一行1×1=1靠右边依此下推,就是上面那种水平翻转
展开
 我来答
却迎亘2165
2006-03-14 · 超过39用户采纳过TA的回答
知道答主
回答量:73
采纳率:0%
帮助的人:0
展开全部
public class Multiplicaiton
{
public static void main(String[] args)
{
for (int i = 1; i <= 9; i++)
{
for(int n = 1; n <= i; n++)
{
System.out.print( i + " x " + n + " = " + i * n + " ");
}
System.out.println();
}
}
}
匿名用户
2006-03-13
展开全部
/**
* Author: Liu Weijun
* Date: 2005.11.23
* Description: page for a travel
*
*/
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class BruceTravelRequest extends HttpServlet {

public void doPost(
HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {

/**
* Indicate the content type (for example, text/html),
* being returned by the response 20
*/
response.setContentType("text/html");

/**
* Retrieve an output stream to use to send data to the client
*/
PrintWriter out = response.getWriter();

/**
* Get the user input from the form : name and destination
*/
/* Add your code here */

String useName = request.getParameter("Name");

String useDestination = request.getParameter("Destination");

/** 41
* Start by building the web page header
*/
/* Add your code here */
out.println(
"<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>");
out.println("<HTML>");
out.println("<HEAD>");
out.println("<TITLE>iCarnegie Travel Agency</TITLE>");
out.println("</HEAD>");
out.println("<BODY bgcolor='oliver'>");

/**
* Add the image
*/
/* Add your code here */

out.println("<IMG src='/" + useDestination
+ "' alt='" + useDestination + "'>");

/**
* Add the confirmation message, with the name
*/
/* Add your code here */

out.println("<br><font size=6 color=red><B>Hello, "+useName+"!<br></b></font>");
out.println(
"<font size=6 color=red><B>Thanks for your request. <br> You will be contacted shortly.</b></font>");

/**
* End by building the web page footer
*/
/* Add your code here */

out.println("</BODY>");
out.println("</HTML>");

} // end-doPost

}
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
weiDezh
2006-03-13 · 超过14用户采纳过TA的回答
知道答主
回答量:81
采纳率:0%
帮助的人:43.7万
展开全部
for(int i=1;i<=9;i++){
for(ing j=1;j<=i;j++)
System.out.print(i+"*"+j+"="+i*j+"\t");

System.out.println();//换行
}
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
创作者tQN3TBkbQ1
2019-02-20 · TA获得超过3553个赞
知道大有可为答主
回答量:3076
采纳率:35%
帮助的人:182万
展开全部
public
class
Multiplicaiton
{
public
static
void
main(String[]
args)
{
for
(int
i
=
1;
i
<=
9;
i++)
{
for(int
n
=
1;
n
<=
i;
n++)
{
System.out.print(
i
+
"
x
"
+
n
+
"
=
"
+
i
*
n
+
"
");
}
System.out.println();
}
}
}
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
百度网友7f9dd6509
2006-03-13 · 超过28用户采纳过TA的回答
知道答主
回答量:300
采纳率:0%
帮助的人:157万
展开全部
我问谁
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
春者何其人来Z
2006-03-13
知道答主
回答量:34
采纳率:0%
帮助的人:0
展开全部
这不是九九乘法表吗
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 2条折叠回答
收起 更多回答(4)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式