<%@ page contentType="text/html;charset=gb2312" %>
<%@ page language="java" %>
<html>
<head>
<title>Scriptlets example</title>
</head>
<body>
<% String title="<center><h2>九九乘法表</h2></center>";
%>
</br>
<%
out.println(title);
for(int i=1;i<10;i++)
{
for(int j=1;j<=i;j++)
{
out.println(j+"X"+i+"="+i*j+" ");
}
out.println("<br>");
}
%>
</body>
</html>
<%@ page language="java" %>
<html>
<head>
<title>Scriptlets example</title>
</head>
<body>
<% String title="<center><h2>九九乘法表</h2></center>";
%>
</br>
<%
out.println(title);
for(int i=1;i<10;i++)
{
for(int j=1;j<=i;j++)
{
out.println(j+"X"+i+"="+i*j+" ");
}
out.println("<br>");
}
%>
</body>
</html>