javaweb ,jsp页面输出9x9乘法表

javaweb超简单的jsp页面9x9乘法表

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>



  
    
    
    My JSP '99cf.jsp' starting page
    
	
	
	    
	
	
	

  
  

九九乘法表

<% out.println(""); for(int i=1;i<10;i++){ out.print(""); for (int j = 1; j <=i; j++) { out.print(""); } out.print(""); } out.println("
"+j+"*"+i+"="+i*j+"
"); %>

javaweb ,jsp页面输出9x9乘法表_第1张图片

你可能感兴趣的:(Java开发基础)