代码:
<%@page language="java" contentType="text/html;charset=utf-8"%>
<html>
<head>
<title>expressionDemo</title>
</head>
<body>
<h1>以直角三角形的形式输出数字</h1>
<table>
<%for(int i=1;i<=9;i++){%>
<tr>
<%for(int j=1;j<=i;j++){%>
<td><%=j%></td>
<%}%>
</tr>
<%}%>
</table>
</body>
</html>