diff --git "a/\344\275\234\344\270\232/JAVA/xunhuan/.idea/misc.xml" "b/\344\275\234\344\270\232/JAVA/xunhuan/.idea/misc.xml" new file mode 100644 index 0000000000000000000000000000000000000000..33724858b4c84bb549696b16034360a2737fec97 --- /dev/null +++ "b/\344\275\234\344\270\232/JAVA/xunhuan/.idea/misc.xml" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/\344\275\234\344\270\232/JAVA/xunhuan/.idea/modules.xml" "b/\344\275\234\344\270\232/JAVA/xunhuan/.idea/modules.xml" new file mode 100644 index 0000000000000000000000000000000000000000..f88be1d6d30212833e988b0c6a47edb6e7622370 --- /dev/null +++ "b/\344\275\234\344\270\232/JAVA/xunhuan/.idea/modules.xml" @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git "a/\344\275\234\344\270\232/JAVA/xunhuan/.idea/workspace.xml" "b/\344\275\234\344\270\232/JAVA/xunhuan/.idea/workspace.xml" new file mode 100644 index 0000000000000000000000000000000000000000..e34965cee0ef0c65b4d9ae48d7aa54b2b5b7c178 --- /dev/null +++ "b/\344\275\234\344\270\232/JAVA/xunhuan/.idea/workspace.xml" @@ -0,0 +1,65 @@ + + + + + + + + + + + + + { + "keyToString": { + "RunOnceActivity.OpenProjectViewOnStart": "true", + "RunOnceActivity.ShowReadmeOnStart": "true", + "WebServerToolWindowFactoryState": "false", + "node.js.detected.package.eslint": "true", + "node.js.detected.package.tslint": "true", + "node.js.selected.package.eslint": "(autodetect)", + "node.js.selected.package.tslint": "(autodetect)", + "vue.rearranger.settings.migration": "true" + } +} + + + + + + + + + + + + + + 1670921068479 + + + + + + \ No newline at end of file diff --git "a/\344\275\234\344\270\232/JAVA/xunhuan/out/production/xunhuan/Main.class" "b/\344\275\234\344\270\232/JAVA/xunhuan/out/production/xunhuan/Main.class" new file mode 100644 index 0000000000000000000000000000000000000000..f78313cb85f6aea8ac007d52c4e40f36e914d416 Binary files /dev/null and "b/\344\275\234\344\270\232/JAVA/xunhuan/out/production/xunhuan/Main.class" differ diff --git "a/\344\275\234\344\270\232/JAVA/xunhuan/src/Main.java" "b/\344\275\234\344\270\232/JAVA/xunhuan/src/Main.java" new file mode 100644 index 0000000000000000000000000000000000000000..0356024560ff15f4c7ff64bffe119504136de75b --- /dev/null +++ "b/\344\275\234\344\270\232/JAVA/xunhuan/src/Main.java" @@ -0,0 +1,43 @@ +import java.util.Scanner; + +public class Main { + public static void main(String[] args) { + Scanner scanner=new Scanner(System.in); + int i=1; + while (i<=11){ + System.out.println("*"); + i++; + } + + int o=3; + while (o<=9){ + System.out.println(o+"*3="+3*o); + o++; + } + + int a=0; + double b=0,c=0; + while (a<5){ + System.out.println("请输入第"+(a+1)+"个数"); + b=scanner.nextDouble(); + c+=b; + a++; + } + System.out.println(a+"个数为"+c); + + int d=0; + double e=0,f=0; + while (d<5){ + System.out.println("请输入第"+(d+1)+"个数"); + d++; + if (d>0&&d<=100){ + System.out.println("该成绩有误,不列入计算"); + d--; + }else{ + e=scanner.nextDouble(); + f+=e; + } + System.out.println(d+"个数为"+f); + } + } +} \ No newline at end of file diff --git "a/\344\275\234\344\270\232/JAVA/xunhuan/xunhuan.iml" "b/\344\275\234\344\270\232/JAVA/xunhuan/xunhuan.iml" new file mode 100644 index 0000000000000000000000000000000000000000..9465dd864f0bbf5233af344982a638534a50275d --- /dev/null +++ "b/\344\275\234\344\270\232/JAVA/xunhuan/xunhuan.iml" @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git "a/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/.idea/misc.xml" "b/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/.idea/misc.xml" new file mode 100644 index 0000000000000000000000000000000000000000..33724858b4c84bb549696b16034360a2737fec97 --- /dev/null +++ "b/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/.idea/misc.xml" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/.idea/modules.xml" "b/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/.idea/modules.xml" new file mode 100644 index 0000000000000000000000000000000000000000..a8db66704736e7c2841cabd230fcc0d2255bc037 --- /dev/null +++ "b/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/.idea/modules.xml" @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git "a/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/.idea/workspace.xml" "b/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/.idea/workspace.xml" new file mode 100644 index 0000000000000000000000000000000000000000..a0ee85b577e96980d046547e684300dd47e5ec04 --- /dev/null +++ "b/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/.idea/workspace.xml" @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + { + "keyToString": { + "RunOnceActivity.OpenProjectViewOnStart": "true", + "RunOnceActivity.ShowReadmeOnStart": "true", + "WebServerToolWindowFactoryState": "false", + "node.js.detected.package.eslint": "true", + "node.js.detected.package.tslint": "true", + "node.js.selected.package.eslint": "(autodetect)", + "node.js.selected.package.tslint": "(autodetect)", + "vue.rearranger.settings.migration": "true" + } +} + + + + + + + + + + + + + + + + + + + 1671355973145 + + + + + + \ No newline at end of file diff --git "a/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/out/production/untitled/Lx2.class" "b/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/out/production/untitled/Lx2.class" new file mode 100644 index 0000000000000000000000000000000000000000..0aa4c50122e1c8edbd6e3795cfd8272f258ba8f8 Binary files /dev/null and "b/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/out/production/untitled/Lx2.class" differ diff --git "a/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/out/production/untitled/Lx3.class" "b/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/out/production/untitled/Lx3.class" new file mode 100644 index 0000000000000000000000000000000000000000..9e05599b1352185588ac7d602de357ee9f9ec12c Binary files /dev/null and "b/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/out/production/untitled/Lx3.class" differ diff --git "a/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/out/production/untitled/Lx4.class" "b/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/out/production/untitled/Lx4.class" new file mode 100644 index 0000000000000000000000000000000000000000..f407afead31c90cee9c189e0cf4757c8b57716a8 Binary files /dev/null and "b/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/out/production/untitled/Lx4.class" differ diff --git "a/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/out/production/untitled/Main.class" "b/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/out/production/untitled/Main.class" new file mode 100644 index 0000000000000000000000000000000000000000..ce46f16d234022d988394cfb407021f32c8c6993 Binary files /dev/null and "b/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/out/production/untitled/Main.class" differ diff --git "a/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/src/Lx2.java" "b/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/src/Lx2.java" new file mode 100644 index 0000000000000000000000000000000000000000..22c5c48e719d237bb1b9fa1c5833f0095654866d --- /dev/null +++ "b/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/src/Lx2.java" @@ -0,0 +1,32 @@ +import java.util.Scanner; + +public class Lx2 { + public static void main(String[] args) { + int a=0; + for (int b=100;b<=200;b++){ + if (b%3 !=0){ + System.out.println(a); + a++; + } + } + + Scanner scanner=new Scanner(System.in); + System.out.println("请输入课程数:"); + int c = scanner.nextInt(); + float d=0; + for(int i=1;i<=c;){ + System.out.println("第"+i+"门成绩:"); + float e= scanner.nextFloat(); + d=d+e; + i++; + }System.out.println("平均分为"+c/d); + + System.out.println("请输入要求阶乘的数f:"); + int f = scanner.nextInt(); + long g= 1; + for (int h=f;h>=1;h--){ + g=g*h; + } + System.out.println(f+"的阶乘是:"+g); + } +} diff --git "a/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/src/Lx4.java" "b/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/src/Lx4.java" new file mode 100644 index 0000000000000000000000000000000000000000..90a0841d26d9865916b7723f9b5ae59dfcafdb4b --- /dev/null +++ "b/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/src/Lx4.java" @@ -0,0 +1,26 @@ +public class Lx4 { + public static void main(String[] args) { + for (int a=0;a<5;a++){ + for (int b=0;b<5;b++){ + System.out.println("*"); + }System.out.println(); + } + + for (int d=0;d<5;d++){ + for (int e=0;e=0&&b<=100){ + System.out.println("平均成绩:"+b/a); + }else{ + System.out.println("成绩录入有误"); + } + + int d=1,e=1; + for (int f=9;f>0;f--){ + d=2*(d+1); + e=d+e; + } System.out.println("一共有"+e+"个桃子"); + } +} \ No newline at end of file diff --git "a/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/untitled.iml" "b/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/untitled.iml" new file mode 100644 index 0000000000000000000000000000000000000000..9465dd864f0bbf5233af344982a638534a50275d --- /dev/null +++ "b/\344\275\234\344\270\232/JAVA/\345\276\252\347\216\257\347\273\203\344\271\240/untitled.iml" @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file