From 68b84cb935f4955a6125d29d9e2d2f6cf20d450e Mon Sep 17 00:00:00 2001 From: WZF <592926642@qq.com> Date: Mon, 3 Jun 2024 22:18:33 +0800 Subject: [PATCH] 0603 --- .../circle.jsp" | 20 ++++++++++++++ .../ladder.jsp" | 24 +++++++++++++++++ .../main.jsp" | 26 +++++++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 "work/com/java/minxi/java_20240603/java_2301_\345\220\264\346\231\272\345\263\260_2344310110/circle.jsp" create mode 100644 "work/com/java/minxi/java_20240603/java_2301_\345\220\264\346\231\272\345\263\260_2344310110/ladder.jsp" create mode 100644 "work/com/java/minxi/java_20240603/java_2301_\345\220\264\346\231\272\345\263\260_2344310110/main.jsp" diff --git "a/work/com/java/minxi/java_20240603/java_2301_\345\220\264\346\231\272\345\263\260_2344310110/circle.jsp" "b/work/com/java/minxi/java_20240603/java_2301_\345\220\264\346\231\272\345\263\260_2344310110/circle.jsp" new file mode 100644 index 00000000..414b55bb --- /dev/null +++ "b/work/com/java/minxi/java_20240603/java_2301_\345\220\264\346\231\272\345\263\260_2344310110/circle.jsp" @@ -0,0 +1,20 @@ + + + + + + Document + + +

+ <% + String radius = request.getParameter("radius"); + double v = Double.parseDouble(radius); + double v1 = Math.PI * v * v; + %> + <%=v1%> +

+ + + \ No newline at end of file diff --git "a/work/com/java/minxi/java_20240603/java_2301_\345\220\264\346\231\272\345\263\260_2344310110/ladder.jsp" "b/work/com/java/minxi/java_20240603/java_2301_\345\220\264\346\231\272\345\263\260_2344310110/ladder.jsp" new file mode 100644 index 00000000..99d05c70 --- /dev/null +++ "b/work/com/java/minxi/java_20240603/java_2301_\345\220\264\346\231\272\345\263\260_2344310110/ladder.jsp" @@ -0,0 +1,24 @@ + + + + + + Document + + +

+ <% + String top = request.getParameter("top"); + String bottom = request.getParameter("bottom"); + String high = request.getParameter("high"); + double v = Double.parseDouble(top); + double v1 = Double.parseDouble(bottom); + double v2 = Double.parseDouble(high); + double area=(v+v1)*v2/2; + %> + <%=area%> +

+ + + \ No newline at end of file diff --git "a/work/com/java/minxi/java_20240603/java_2301_\345\220\264\346\231\272\345\263\260_2344310110/main.jsp" "b/work/com/java/minxi/java_20240603/java_2301_\345\220\264\346\231\272\345\263\260_2344310110/main.jsp" new file mode 100644 index 00000000..202468ca --- /dev/null +++ "b/work/com/java/minxi/java_20240603/java_2301_\345\220\264\346\231\272\345\263\260_2344310110/main.jsp" @@ -0,0 +1,26 @@ +<%@ page pageEncoding="utf-8" %> + + + + + + Document + + +

+ 圆的面积: +

+ + + +

+ 梯形的面积: +

+ + + + + + + \ No newline at end of file -- Gitee