上传了实验二,已确认无敏感信息

This commit is contained in:
2024-06-10 16:33:43 +08:00
parent 729de600bd
commit f1190f2c2f
6 changed files with 104 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import java.util.Scanner;
public class task2 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int goal = input.nextInt();
int mutied = 1;
for (int i = 1; i <= goal; i++) {
mutied *= i;
}
System.out.println(mutied);
}
}