diff --git "a/12 \350\224\241\344\271\224\346\243\256/2023.5.12\345\274\202\345\270\270\344\275\234\344\270\232.md" "b/12 \350\224\241\344\271\224\346\243\256/2023.5.12\345\274\202\345\270\270\344\275\234\344\270\232.md" new file mode 100644 index 0000000000000000000000000000000000000000..0169b6c673b3bd5d5bb4a71ee36596c3bf9f7e2d --- /dev/null +++ "b/12 \350\224\241\344\271\224\346\243\256/2023.5.12\345\274\202\345\270\270\344\275\234\344\270\232.md" @@ -0,0 +1,28 @@ +```java +package com.cqs; + +import java.util.Scanner; + +public class D1 { + public static void main(String[] args) { + while (true) { + try { + Scanner sc = new Scanner(System.in); + System.out.println("输入第一位数"); + int a = sc.nextInt(); + System.out.println("输入第二位数"); + int b = sc.nextInt(); + ab(a, b); + System.out.println(a + b); + break; + } catch (Exception e) { + System.out.println("输入错误大傻逼"); + + } + } + } + private static int ab(int a,int b) { + return a+b; + } +} +``` \ No newline at end of file