-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBeeCrowd1037.java
More file actions
25 lines (22 loc) · 820 Bytes
/
BeeCrowd1037.java
File metadata and controls
25 lines (22 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import java.util.Scanner;
// Problem URL: https://www.beecrowd.com.br/judge/en/problems/view/1037
// Last access 14 September 2022
// Visit my GitHub repository @ https://github.com/skan90
public class BeeCrowd1037 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
double number = input.nextDouble();
if (number < 0.0 || number > 100.0) {
System.out.println("Fora de intervalo");
} else if (number <= 25.0000) {
System.out.println("Intervalo [0,25]");
} else if (number <= 50.00000 && number > 25.00000) {
System.out.println("Intervalo (25,50]");
} else if (number <= 75.00000 && number > 50.00001) {
System.out.println("Intervalo (50,75]");
} else {
System.out.println("Intervalo (75,100]");
}
input.close();
}
}