diff --git a/.idea/libraries/KotlinJavaRuntime.xml b/.idea/libraries/KotlinJavaRuntime.xml new file mode 100644 index 0000000000000000000000000000000000000000..d2eaa8c2250bd3faf730e501c5419555748c0055 --- /dev/null +++ b/.idea/libraries/KotlinJavaRuntime.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000000000000000000000000000000000000..05483570e041eb648703359441d61bf9a5feeb13 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000000000000000000000000000000000000..264c5df64ae695cdcb9cda07f2eb4391d556613b --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml new file mode 100644 index 0000000000000000000000000000000000000000..2b63946d5b31084bbb7dda418ceb3d75eb686373 --- /dev/null +++ b/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000000000000000000000000000000000000..5183a2d2803e6bfe9b188484acfeb6c544fce93f --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/mathDemo.java b/mathDemo.java deleted file mode 100644 index e935f87ab1184945033bd5beaaa1f3966af4a26f..0000000000000000000000000000000000000000 --- a/mathDemo.java +++ /dev/null @@ -1,84 +0,0 @@ -package Apractice; - -/** - * @author QGW - * @version 1.9 - * @Time: - */ -import org.junit.jupiter.api.Test; - -import java.util.Scanner; - -public class mathDemo { - - public static void main(String[] args) { - - System.out.println(jiecheng()); - System.out.println(jiecheng()); - System.out.println(jiecheng1()); - - } - @Test - public void jishu(){ - //1到100之间所有奇数的平方和 - int sum = 0; - for (int i = 1; i < 101; i++) { - if (i % 2 != 0){ - sum = sum + i * i; - System.out.println(i + " " + sum); - } - } - } - @Test - public void printzhi() { - //第一个质数起,列出100个质数(十行十列) - boolean isFlag = true; - int count = 0; - for (int i = 2;; i++) { - for (int j = 2; j < i; j++) { - if (i % j == 0) { - isFlag = false; - break; - } - } - - if (isFlag) { - System.out.print(i + " "); - count++; - //满⑩换行 - if (count % 10 == 0) - System.out.println(); - } - - // 重置isFlag - isFlag = true; - - //输出100个退出循环 - if (count == 100) - break; - } - } - - //定义函数,求取正整数N的阶乘 - public static int jiecheng(){ - System.out.println("输入正整数"); - Scanner scanner = new Scanner(System.in); - int N = scanner.nextInt(); - int s = 1; - for (int i = N; i >= 1 ; i--) { - s *= i; - } - return s; - } - - //调用函数求取正整数9的阶乘 - public static int jiecheng1(){ - int s = 1; - for (int i = 9; i >= 1 ; i--) { - s *= i; - } - return s; - } -} - - diff --git "a/\345\256\236\344\271\240\346\227\245\345\277\227/.idea/misc.xml" "b/\345\256\236\344\271\240\346\227\245\345\277\227/.idea/misc.xml" new file mode 100644 index 0000000000000000000000000000000000000000..639900d13c6182e452e33a3bd638e70a0146c785 --- /dev/null +++ "b/\345\256\236\344\271\240\346\227\245\345\277\227/.idea/misc.xml" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/\345\256\236\344\271\240\346\227\245\345\277\227/.idea/modules.xml" "b/\345\256\236\344\271\240\346\227\245\345\277\227/.idea/modules.xml" new file mode 100644 index 0000000000000000000000000000000000000000..5f589c969152f3ef7d24c4d38520cca25f867077 --- /dev/null +++ "b/\345\256\236\344\271\240\346\227\245\345\277\227/.idea/modules.xml" @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git "a/\345\256\236\344\271\240\346\227\245\345\277\227/.idea/vcs.xml" "b/\345\256\236\344\271\240\346\227\245\345\277\227/.idea/vcs.xml" new file mode 100644 index 0000000000000000000000000000000000000000..6c0b8635858dc7ad44b93df54b762707ce49eefc --- /dev/null +++ "b/\345\256\236\344\271\240\346\227\245\345\277\227/.idea/vcs.xml" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/\345\256\236\344\271\240\346\227\245\345\277\227/.idea/\345\256\236\344\271\240\346\227\245\345\277\227.iml" "b/\345\256\236\344\271\240\346\227\245\345\277\227/.idea/\345\256\236\344\271\240\346\227\245\345\277\227.iml" new file mode 100644 index 0000000000000000000000000000000000000000..d6ebd4805981b8400db3e3291c74a743fef9a824 --- /dev/null +++ "b/\345\256\236\344\271\240\346\227\245\345\277\227/.idea/\345\256\236\344\271\240\346\227\245\345\277\227.iml" @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file