How solve error expected ; : <p>Given an integer,n , perform the following conditional actions:</p>

<p>If n,  is odd, print Weird
If n, is even and in the inclusive range of 2 to 5, print Not Weird
If n, is even and in the inclusive range of 6 to 20, print Weird
If n is even and greater than 20, print Not Weird</p>

<p>My Code is</p>

<pre><code>import java.io.*;
    import java.util.*;
    import java.text.*;
    import java.math.*;
    import java.util.regex.*;

    public class Solution {

        public static void main(String[] args) {

            Scanner sc=new Scanner(System.in);
            int n=sc.nextInt();            
            String ans="";
            if(n%2==1)  {
              ans = "Weird";
            }

            elseif(n%2==0 &amp;&amp; 2&lt;=n&lt;=5){
                ans = "Not Weird";
            }

            elseif(n%2==0 &amp;&amp; 6&lt;=n&lt;=20) {
                ans = "Weird";
            }

            elseif(n&gt;=20)
            {
             ans = "Weird";``

            }
            System.out.println(ans);

        }
    }
</code></pre>

<p>And there are error :
Solution.java:18: error: ';' expected
            elseif(n%2==0 &amp;&amp; 2&lt;=n&lt;=5){
                                     ^
Solution.java:22: error: ';' expected
            elseif(n%2==0 &amp;&amp; 6&lt;=n&lt;=20) {
                                      ^
Solution.java:26: error: ';' expected
            elseif(n>=20)
                         ^
3 errors
I don't know how to solve those problem.</p>
