<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>九九乘法表</title>
</head>
<!--
<%!
String printMultiTable(){
String s="";
for(int i=1;i<=9;i++){
for(int j=1;j<=i;j++){
s+=j+"*"+i+"="+i*j+" ";
}
s+="<br>";
}
return s;
}
%>
-->
<body>
<h1>舅舅乘法表</h1>
<%
for(int i=1;i<=9;i++){
for(int j=1;j<=i;j++){
out.println(j+"*"+i+"="+i*j+" ");
}
out.println("<br>");
}
%>
<!--
<%=printMultiTable() %>
-->
</body>
</html>