code004.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>代码片段,九九乘法表</title>
</head>
<body>
<%
String str = "";
for(int i=1;i<=9;i++)
{
for(int j=1;j<=i;j++)
{
str += j + " * " + i + " = " + j*i;
str += " ";
}
str += "<br>";
}
%>
<table wdith="440" height="85" border="1" cellpadding="0" cellspacing="0" style="font:9pt;" bordercolordark="#666666" bordercolorlight="#ffffff" bordercolor="#ffffff">
<tr>
<td height="30" align="center">九九乘法表</td>
</tr>
<tr>
<td style="padding:3pt">
<%= str %>
</td>
</tr>
</table>
</body>
</html>