<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>jiecheng</title>
</head>
<body>

 <% int i=0;
    int jiecheng=1;
    do 
    {
       i++;
       jiecheng=jiecheng*i;
    
     }
       while (i<5);
    %>
5的阶乘为:
<%=jiecheng %>

</body>
</html>

计算5的阶乘并在JSP页面输出

相关文章:

  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2022-02-27
  • 2022-12-23
  • 2021-10-14
猜你喜欢
  • 2021-12-09
  • 2022-12-23
  • 2021-07-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案