目录
🍉题目
在WEB项目中,新建一个JSP文件,通过编写程序,在网页中显示九九乘法表
🍓代码
<%-- Created by IntelliJ IDEA. User: 小赛毛 Date: 2022/5/8 Time: 12:20 To change this template use File | Settings | File Templates. --%> <%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <title>99乘法表</title> </head> <body> <% for(int i = 1; i <= 9; i++){ for(int j = 1; j <= i; j++){ out.print(i + "*" + j + "=" + i * j + " "); } out.print("<br/>"); } %> </body> </html>
🍑代码运行结果
(江湖游历在外,还要多多仰仗各位衣食父母,方便的话点个赞,点个关注呗,谢谢你嘞,客官慢走)🌹🌹🌹