We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ae1a08 commit b81484fCopy full SHA for b81484f
IfElse.java
@@ -0,0 +1,39 @@
1
+ import java.io.*;
2
+ import java.util.*;
3
+ import java.text.*;
4
+ import java.math.*;
5
+ import java.util.regex.*;
6
+
7
+ public class Solution {
8
9
+ public static void main(String[] args) {
10
11
+ Scanner sc=new Scanner(System.in);
12
+ int n=sc.nextInt();
13
+ String ans="";
14
+ if(n%2==1){
15
+ ans = "Weird";
16
+ }
17
+ else{
18
+ if(n>=2 && n<=5){
19
+ ans = "Not Weird";
20
21
+ if(n>=6 && n<=20)
22
+ {
23
24
25
+ else if(n>=20){
26
27
28
29
30
31
32
33
+ //Complete the code
34
35
36
+ System.out.println(ans);
37
38
39
0 commit comments