-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCricketWorldCupQualifier.java
More file actions
47 lines (36 loc) · 1.11 KB
/
CricketWorldCupQualifier.java
File metadata and controls
47 lines (36 loc) · 1.11 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
Cricket World Cup Qualifier
The cricket World Cup has started in Chefland. There are many teams participating in the group stage matches. Any team that scores
12
12 or more points in the group stage matches qualifies for the next stage.
You know the score that a particular team has scored in the group stage matches. Determine if the team has qualified for the next stage or not.
Input Format
The first and only line of input consists of an integer
X
X denoting the total points scored by the given team in the group stage matches.
Output Format
Output Yes, if the team has qualified for the next stage, and No otherwise.
You may print each character of the string in uppercase or lowercase (for example, the strings YES, yEs, yes, and yeS will all be treated as identical).
Constraints
1
≤
X
≤
20
1≤X≤20
Sample 1:
Input
Output
3
No
*/
import java.util.Scanner;
public class CricketWorldCupQualifier {
public static void main (String[] args) throws java.lang.Exception
{
// your code goes here
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
System.out.print(n>=12 ? "YES" : "NO");
}
}