JSP第一次作业

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  </head>
  
  <body>
    Hello <br>
  </body>
</html>

 

 <%  char i;
  char b;
    for( i='A';i<='Z';i++){
    b=(char)(i+32);
  out.print(i + "("+b+" )"+ "");
  }
  %>

 

<%  int j;
  int i;
    for( j=1;j<=9;j++){
    for(i=1;i<=j;i++){
    int n=j*i;
    out.print(j+"x"+i+"="+n+"  ");
    
   }
   out.print("<br>");
  }
  %>

 

 

posted @ 2022-03-05 15:08  崔宝元  阅读(12)  评论(0编辑  收藏  举报