JSP第一次作业

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

</head>

<body>

	<br>
</body>
<%
  int i,sum=0; 
	for(i=2;i<102;i=i+2) 
	{  
		sum=sum+i; 
	} 
	out.print(sum);

  

    

   
  %>


</body>
</html>




</html>

  

posted on 2021-03-03 18:18  mashao  阅读(13)  评论(0编辑  收藏  举报

导航