把test.java救回来了

This commit is contained in:
2024-06-11 01:53:01 +08:00
parent d085000064
commit d753356d40
54 changed files with 1309 additions and 1297 deletions
+18 -18
View File
@@ -1,19 +1,19 @@
import java.util.Scanner;
public class task1 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
double score = input.nextDouble();
if (score >= 90 & score <= 100) {
System.out.println(4.0);
} else if (score >= 80 & score < 90) {
System.out.println(3.5);
} else if (score >= 70 && score < 80) {
System.out.println(3.0);
} else if (score >= 60 && score < 70) {
System.out.println(2.5);
} else {
System.out.println(0d);
}
}
import java.util.Scanner;
public class task1 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
double score = input.nextDouble();
if (score >= 90 & score <= 100) {
System.out.println(4.0);
} else if (score >= 80 & score < 90) {
System.out.println(3.5);
} else if (score >= 70 && score < 80) {
System.out.println(3.0);
} else if (score >= 60 && score < 70) {
System.out.println(2.5);
} else {
System.out.println(0d);
}
}
}