第二次作业

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body>
    <p>用for二重循环输出一个3行5列的table.</p>
    <table border="1">
        <%
            for (int i = 0; i < 3; i++) {
        %>
        <tr>
            <%
                for (int j = 0; j < 5; j++) {
            %>
            <td>long</td>
            <%
                }
            %>
        </tr>
        <%
            }
        %>
    </table>
</body>
</html>
posted @ 2021-03-15 14:41  好学生!  阅读(29)  评论(0编辑  收藏  举报