@@ -0,0 +1,1284 @@
+package java_problems.introduction;%0D%0A%0D%0Aimport java.util.Scanner;%0D%0A%0D%0A/*%0D%0A * Problem Statement:%0D%0A * Given an integer N as input, check the following:%0D%0A * %0D%0A * If N is odd, print %22Weird%22.%0D%0A * If N is even and, in between the range of 2 and 5(inclusive), print%0D%0A * %22Not Weird%22.%0D%0A * If N is even and, in between the range of 6 and 20(inclusive), print %22Weird%22.%0D%0A * If N is even and N%3E20, print %22Not Weird%22.%0D%0A * %0D%0A * Input Format: %0D%0A * There is a single line of input: integer N.%0D%0A * %0D%0A * Constraints:%0D%0A * 1 %3C= N %3C= 100%0D%0A * %0D%0A * Output Format: %0D%0A * Print %22Weird%22 if the number is weird. Otherwise, print %22Not Weird%22. Do not%0D%0A * print the quotation marks.%0D%0A * %0D%0A * Sample Input 1: %0D%0A * 3%0D%0A * %0D%0A * Sample Output 1: %0D%0A * Weird%0D%0A * %0D%0A * Sample Input 2: %0D%0A * 24%0D%0A * %0D%0A * Sample Output 2: %0D%0A * Not Weird%0D%0A */%0D%0Apublic class JavaIfElse %7B%0D%0A%0D%0A    public static void main(String%5B%5D args) %7B%0D%0A        %0D%0A        Scanner sc = new Scanner(System.in);%0D%0A        %0D%0A        int num = sc.nextInt();%0D%0A        %0D%0A        if (num %25 2 == 1) %7B%0D%0A            System.out.println(%22Weird%22);%0D%0A        %7D else %7B%0D%0A            if (num %3E 20 %7C%7C num %3C 6) %7B%0D%0A                System.out.println(%22Not Weird%22);%0D%0A            %7D else %7B%0D%0A                System.out.println(%22Weird%22);%0D%0A            %7D%0D%0A        %7D%0D%0A        sc.close();%0D%0A    %7D%0D%0A%7D

Add JavaIfElse