From 34b0801a217546a660b63a95f64f62df5f0edaed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E4=BF=8A=E4=BC=9F?= <2421084001@qq.com> Date: Mon, 19 Dec 2022 12:23:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...01\346\254\241\344\275\234\344\270\232.md" | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 "12 \346\236\227\344\277\212\344\274\237/20221218 \347\254\254\345\215\201\346\254\241\344\275\234\344\270\232.md" diff --git "a/12 \346\236\227\344\277\212\344\274\237/20221218 \347\254\254\345\215\201\346\254\241\344\275\234\344\270\232.md" "b/12 \346\236\227\344\277\212\344\274\237/20221218 \347\254\254\345\215\201\346\254\241\344\275\234\344\270\232.md" new file mode 100644 index 0000000..8654b3c --- /dev/null +++ "b/12 \346\236\227\344\277\212\344\274\237/20221218 \347\254\254\345\215\201\346\254\241\344\275\234\344\270\232.md" @@ -0,0 +1,34 @@ +~~~ java +public class zyten { + public static void main(String[] args) { + Scanner Sc = new Scanner(System.in); + System.out.println("输入三个数"); + int x = Sc.nextInt(); + int y = Sc.nextInt(); + int z = Sc.nextInt(); + lifan(x,y,z); + } + public static void lifan(int x,int y,int z){ + System.out.println( x*3+y*3+z*3); + + } +} +~~~ + +~~~ java +import java.util.Scanner; + +public class zyten2 { + public static void main(String[] args) { + Scanner sc = new Scanner(System.in); + System.out.println("输入两位数比较大小"); + int a= sc.nextInt(); + int b= sc.nextInt(); + System.out.println(max(a,b)+"比较大"); + } + public static int max(int a, int b){ + return a>b ? a:b; + } +} +~~~ + -- Gitee